added check for no moves