Ball Game (Prolog)