Minesweeper Ruby MRI solution.