Moved GUI code from Main to the Minesweeper class.