public void checkGameOver()
	{
		// if((isTwoPlayers && !placingShips) && game.gameFinished())
		if(!placingShips && game.gameFinished())
		{
			System.out.println("Game over");
			
			gameOver = true;
			game.makeRightWin(game.isMyWin());
			
//			if(!debugMode)
//			{
				render();
				String winner = "left side wins";
				if(game.isMyWin())
					winner = "right side wins";
				if(!isTwoPlayers && !game.isMyWin())
					winner = "the computer wins";
				else
					winner = "you win";
				String turns = " in "+game.totalTurns+" turns";
				JOptionPane.showMessageDialog(null, "Game over - "+winner+turns+"!");
//			}
		}
	}