public static void stopGame() { System.out.println("Black's score is: "); System.out.println(GameUI.getBlackScore()); System.out.println("White's score is: "); System.out.println(GameUI.getWhiteScore()); int bScore = Integer.parseInt(GameUI.getBlackScore()); int wScore = Integer.parseInt(GameUI.getWhiteScore()); System.out.println(""); if (bScore == wScore) { System.out.println("The game is a tie!"); } else if (bScore > wScore) { System.out.println("The Black player won"); } else { System.out.println("The White player won"); } System.out.println(""); System.out.println("You may now quit and play another game. Or get some snacks."); }