fix bug where king couldnt move out of check