minesweeper challenge in ruby