Fixed signs in score += blackKingSafety(i);