Minesweeper terminal game in ruby