small bug in isCheckPosition, namely a PAWN can only set the king check
if he is 1 square away,