add functionality to check if player is in check