programming games in prolog 637985