Wumpus world in Prolog