Changes the logic to check the list of available moves