Pieces cannot move into check and fixed bugs with the move checking refactor