Adding unit test to verify that only capturing moves are returned from the variant when applicable in the antichess variant. Minor code refactor to avoid repeated work