my solution to wumpus task