CLI minesweeper in Ruby