fixed bug where pieces could be dropped off screen.
Both not allowing the king to move into check and allowing the defending side already in check to capture the attacking piece (rather than block) to eliminate the check