public static boolean isCheckmate(){
		int kingXCoor, kingYCoor;
		kingXCoor = getXOfKing(userColor);
		kingYCoor = getYOfKing(userColor);
		if (isChecked(userColor, kingXCoor, kingYCoor, true)){
			if (!canMove(userColor, kingXCoor, kingYCoor)){
				if (debugMode){
					System.out.println("KING CANNOT MOVE");
				}
				if (!canIntercept(userColor, kingXCoor, kingYCoor)){
					if (userColor.equals("B")){ // if checkmate is true, then other player wins
						winner = player1;
					}
					else{
						winner = player2;
					}
					return true;
				}
			}
		}
		return false;
	}