Minesweeper clone in Ruby