minesweeper: reduce duplicated code for click/mark/open cells.
minesweeper: reduce duplicated code for click/mark/open cells.

bpollack/factor,mrjbq7/factor,AlexIljin/factor,factor/factor,mrjbq7/factor,tgunr/factor,factor/factor,bpollack/factor,factor/factor,tgunr/factor,bpollack/factor,bpollack/factor,mrjbq7/factor,mrjbq7/factor,AlexIljin/factor,factor/factor,tgunr/factor,bpollack/factor,factor/factor,bpollack/factor,mrjbq7/factor,tgunr/factor,factor/factor,AlexIljin/factor,mrjbq7/factor,AlexIljin/factor,AlexIljin/factor,tgunr/factor,AlexIljin/factor,bpollack/factor,AlexIljin/factor,tgunr/factor