private boolean isCastlingPossible(Position gonnaMovePos, int baseYPos, int direction){
		Position rookInitPos = (direction == 1) ? new Position(7, baseYPos) : new Position(0, baseYPos);
		Position palace = (direction == 1) ? new Position(5, baseYPos) : new Position(1, baseYPos);

		if(Board.chessBoard.containsKey(rookInitPos)){ 
			Piece rookCandidate = Board.chessBoard.get(rookInitPos);
			if(rookCandidate.moveCount!=0) return false;
			if(!(rookCandidate.unicode == "\u2656" || rookCandidate.unicode == "\u265C")) return false;
			
			if(isCastleLocationSafe(baseYPos, direction) && palace.equals(gonnaMovePos)) return true;
		}	
		
	return false;
	}