Competition

Time:

Usually, the agent can move to any adjacent cell; however, unfortunately, someone has left gum all over the map and if the agent steps in it, it will get stuck with probability 0.3. If the agent gets stuck, then it must reverse and move back to its previous location.