Functional JavaScript practise: minesweeper clone.