public void checkGameStatus() {
		if ( !game.getGameOver() ) {

			int redPieces = 0;
			int whitePieces = 0;
			int redKings = 0;
			int whiteKings = 0;

			for (Piece p : pieces) {
//				System.out.println("for loop23");
				if ( p.getColor().equals(Color.red) ) {
					redPieces++;
					if ( p.isKing() )
						redKings++;
				} else if ( p.getColor().equals(Color.black) ) {
					whitePieces++;
					if ( p.isKing() )
						whiteKings++;
				}
			}
			if ( whitePieces == 0 ) {
				game.setGameOver("Red");
			} else if ( redPieces == 0 ) {
				game.setGameOver("White");
			} else {
				game.setNumRedPieces(redPieces);
				game.setNumWhitePieces(whitePieces);
				game.setNumRedKings(redKings);
				game.setNumWhiteKings(whiteKings);
			}
		} else {
			repaint();
		}
	}