Fixed bug in whiteKingSafety and blackKingSafety that where called as whiteKingSafety(i) and blackKingSafety(i)