minesweeper on the command line with ruby