Open surrounding cells when clicking on blank cell

+ Reveal mines before displaying 'Game over' message
+ Minor refactoring