Minesweeper game logic library