Made it so that the king checks to the left or the right before moving
so that it doesn't move into check