Fix grid creation

Remove recursive algorithm, make iterative version patch gaps
Fix singleplayer bomb tile
Move place-bombs to lib/mines
Replace expose-tile with a non-recursive algorithm (BFS)
Speedup grid generation
Fix browser detection