Fixed bug with chechmate if king didn't have valid moves