Fully working minesweeper game with a rudimentary API