Minesweeper programmed in Java for use in terminal