Text-based minesweeper written in java