Ruby Code for Minesweeper (Console)