King isn't allowed to move to a square that would put him in check, so there are no legal moves available. Chess rules.