wrote algorithm for getting all moments of an adventure