How to use terminal method in avocado

Best Python code snippet using avocado_python

util.py

Source:util.py Github

copy

Full Screen

1# util.py2# -------3# Licensing Information: You are free to use or extend these projects for4# educational purposes provided that (1) you do not distribute or publish5# solutions, (2) you retain this notice, and (3) you provide clear6# attribution to UC Berkeley, including a link to http://ai.berkeley.edu.7#8#9# Attribution Information: The Pacman AI projects were developed at UC Berkeley.10# The core projects and autograders were primarily created by John DeNero11# (denero@cs.berkeley.edu) and Dan Klein (klein@cs.berkeley.edu).12# Student side autograding was added by Brad Miller, Nick Hay, and13# Pieter Abbeel (pabbeel@cs.berkeley.edu).141516# util.py17# -------18# Licensing Information: You are free to use or extend these projects for19# educational purposes provided that (1) you do not distribute or publish20# solutions, (2) you retain this notice, and (3) you provide clear21# attribution to UC Berkeley, including a link to http://ai.berkeley.edu.22#23# Attribution Information: The Pacman AI projects were developed at UC Berkeley.24# The core projects and autograders were primarily created by John DeNero25# (denero@cs.berkeley.edu) and Dan Klein (klein@cs.berkeley.edu).26# Student side autograding was added by Brad Miller, Nick Hay, and27# Pieter Abbeel (pabbeel@cs.berkeley.edu).282930import sys31import inspect32import heapq33import random34import io35import functools3637class Experiences(object):38 def __init__(self, test_name):39 self._idx = -140 self._experiences = self._get_experiences(test_name)4142 def get_experience(self):43 self._idx += 144 return self._experiences[self._idx]4546 def _get_experiences(self, test_name):47 if test_name == '1-tinygrid':48 list_experiences = [((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 1), 'south', (0, 1), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 1), 'south', (0, 1), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 1), 'south', (0, 1), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 1), 'south', (0, 1), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 1), 'south', (0, 1), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 1), 'south', (0, 1), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 1), 'south', (0, 0), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 1), 'south', (0, 1), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 1), 'south', (0, 0), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 1), 'south', (0, 1), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 1), 'south', (0, 0), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 1), 'south', (0, 1), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 1), 'south', (0, 0), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 1), 'south', (0, 0), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 1), 'west', (0, 1), 0.0), ((0, 1), 'west', (0, 1), 0.0), ((0, 1), 'east', (0, 1), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 1), 'west', (0, 1), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 1), 'north', (0, 1), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 1), 'south', (0, 0), 0.0), ((0, 1), 'south', (0, 0), 0.0), ((0, 1), 'west', (0, 1), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 1), 'south', (0, 1), 0.0), ((0, 1), 'south', (0, 1), 0.0), ((0, 1), 'south', (0, 1), 0.0), ((0, 1), 'west', (0, 1), 0.0), ((0, 1), 'south', (0, 0), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 1), 'west', (0, 1), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 1), 'east', (0, 1), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 1), 'east', (0, 1), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 1), 'east', (0, 1), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 1), 'west', (0, 2), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 1), 'west', (0, 1), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 1), 'east', (0, 1), 0.0), ((0, 1), 'west', (0, 0), 0.0), ((0, 1), 'east', (0, 1), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 1), 'east', (0, 1), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 1), 'west', (0, 1), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 1), 'south', (0, 0), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 1), 'south', (0, 0), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 1), 'east', (0, 1), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 1), 'west', (0, 1), 0.0), ((0, 1), 'south', (0, 0), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 1), 'north', (0, 2), 0.0), ((0, 1), 'east', (0, 1), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10)]49 elif test_name == '2-tinygrid-noisy':50 list_experiences = [((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 1), 'south', (0, 1), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 1), 'south', (0, 1), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 1), 'south', (0, 1), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 1), 'south', (0, 1), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 1), 'south', (0, 1), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 1), 'south', (0, 1), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 1), 'south', (0, 0), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 1), 'south', (0, 1), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 1), 'south', (0, 0), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 1), 'south', (0, 1), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 1), 'south', (0, 0), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 1), 'south', (0, 1), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 1), 'south', (0, 0), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 1), 'south', (0, 0), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 1), 'west', (0, 1), 0.0), ((0, 1), 'west', (0, 1), 0.0), ((0, 1), 'east', (0, 1), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 1), 'west', (0, 1), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 1), 'north', (0, 1), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 1), 'south', (0, 0), 0.0), ((0, 1), 'south', (0, 0), 0.0), ((0, 1), 'west', (0, 1), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 1), 'south', (0, 1), 0.0), ((0, 1), 'south', (0, 1), 0.0), ((0, 1), 'south', (0, 1), 0.0), ((0, 1), 'west', (0, 1), 0.0), ((0, 1), 'south', (0, 0), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 1), 'west', (0, 1), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 1), 'east', (0, 1), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 1), 'east', (0, 1), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 1), 'east', (0, 1), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 1), 'west', (0, 2), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 1), 'west', (0, 1), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 1), 'east', (0, 1), 0.0), ((0, 1), 'west', (0, 0), 0.0), ((0, 1), 'east', (0, 1), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 1), 'east', (0, 1), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 1), 'west', (0, 1), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 1), 'south', (0, 0), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 1), 'south', (0, 0), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 1), 'east', (0, 1), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 1), 'west', (0, 1), 0.0), ((0, 1), 'south', (0, 0), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 0), 'exit', 'TERMINAL_STATE', 10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 1), 'north', (0, 2), 0.0), ((0, 1), 'east', (0, 1), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10)]51 elif test_name == '3-bridge':52 list_experiences = [((0, 5), 'exit', 'TERMINAL_STATE', -100), ((0, 5), 'exit', 'TERMINAL_STATE', -100), ((1, 5), 'south', (2, 5), 0.0), ((0, 5), 'exit', 'TERMINAL_STATE', -100), ((1, 5), 'south', (2, 5), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -100), ((0, 5), 'exit', 'TERMINAL_STATE', -100), ((1, 5), 'south', (2, 5), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -100), ((0, 4), 'exit', 'TERMINAL_STATE', -100), ((0, 5), 'exit', 'TERMINAL_STATE', -100), ((1, 5), 'south', (2, 5), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -100), ((0, 4), 'exit', 'TERMINAL_STATE', -100), ((2, 3), 'exit', 'TERMINAL_STATE', -100), ((0, 5), 'exit', 'TERMINAL_STATE', -100), ((1, 5), 'south', (2, 5), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -100), ((0, 4), 'exit', 'TERMINAL_STATE', -100), ((2, 3), 'exit', 'TERMINAL_STATE', -100), ((0, 3), 'exit', 'TERMINAL_STATE', -100), ((0, 5), 'exit', 'TERMINAL_STATE', -100), ((1, 5), 'south', (2, 5), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -100), ((0, 4), 'exit', 'TERMINAL_STATE', -100), ((2, 3), 'exit', 'TERMINAL_STATE', -100), ((0, 3), 'exit', 'TERMINAL_STATE', -100), ((1, 3), 'south', (1, 2), 0.0), ((0, 5), 'exit', 'TERMINAL_STATE', -100), ((1, 5), 'south', (2, 5), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -100), ((0, 4), 'exit', 'TERMINAL_STATE', -100), ((2, 3), 'exit', 'TERMINAL_STATE', -100), ((0, 3), 'exit', 'TERMINAL_STATE', -100), ((1, 3), 'south', (1, 2), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -100), ((0, 5), 'exit', 'TERMINAL_STATE', -100), ((1, 5), 'south', (2, 5), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -100), ((0, 4), 'exit', 'TERMINAL_STATE', -100), ((2, 3), 'exit', 'TERMINAL_STATE', -100), ((0, 3), 'exit', 'TERMINAL_STATE', -100), ((1, 3), 'south', (1, 2), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -100), ((1, 0), 'exit', 'TERMINAL_STATE', 1), ((0, 5), 'exit', 'TERMINAL_STATE', -100), ((1, 5), 'south', (2, 5), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -100), ((0, 4), 'exit', 'TERMINAL_STATE', -100), ((2, 3), 'exit', 'TERMINAL_STATE', -100), ((0, 3), 'exit', 'TERMINAL_STATE', -100), ((1, 3), 'south', (1, 2), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -100), ((1, 0), 'exit', 'TERMINAL_STATE', 1), ((1, 3), 'south', (0, 3), 0.0), ((2, 1), 'exit', 'TERMINAL_STATE', -100), ((2, 2), 'exit', 'TERMINAL_STATE', -100), ((2, 3), 'exit', 'TERMINAL_STATE', -100), ((0, 4), 'exit', 'TERMINAL_STATE', -100), ((1, 5), 'west', (0, 5), 0.0), ((1, 1), 'west', (0, 1), 0.0), ((1, 4), 'east', (2, 4), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', -100), ((1, 6), 'exit', 'TERMINAL_STATE', 10), ((2, 5), 'exit', 'TERMINAL_STATE', -100), ((2, 1), 'exit', 'TERMINAL_STATE', -100), ((1, 4), 'west', (1, 5), 0.0), ((2, 3), 'exit', 'TERMINAL_STATE', -100), ((2, 2), 'exit', 'TERMINAL_STATE', -100), ((0, 5), 'exit', 'TERMINAL_STATE', -100), ((0, 1), 'exit', 'TERMINAL_STATE', -100), ((2, 1), 'exit', 'TERMINAL_STATE', -100), ((2, 5), 'exit', 'TERMINAL_STATE', -100), ((1, 0), 'exit', 'TERMINAL_STATE', 1), ((0, 1), 'exit', 'TERMINAL_STATE', -100), ((1, 5), 'north', (0, 5), 0.0), ((2, 3), 'exit', 'TERMINAL_STATE', -100), ((2, 4), 'exit', 'TERMINAL_STATE', -100), ((1, 3), 'south', (1, 2), 0.0), ((1, 4), 'south', (0, 4), 0.0), ((1, 3), 'west', (0, 3), 0.0), ((0, 5), 'exit', 'TERMINAL_STATE', -100), ((1, 3), 'south', (1, 2), 0.0), ((1, 2), 'south', (2, 2), 0.0), ((1, 5), 'south', (2, 5), 0.0), ((1, 5), 'west', (0, 5), 0.0), ((1, 0), 'exit', 'TERMINAL_STATE', 1), ((0, 1), 'exit', 'TERMINAL_STATE', -100), ((2, 5), 'exit', 'TERMINAL_STATE', -100), ((1, 5), 'west', (0, 5), 0.0), ((1, 0), 'exit', 'TERMINAL_STATE', 1), ((1, 0), 'exit', 'TERMINAL_STATE', 1), ((0, 1), 'exit', 'TERMINAL_STATE', -100), ((1, 0), 'exit', 'TERMINAL_STATE', 1), ((0, 5), 'exit', 'TERMINAL_STATE', -100), ((1, 6), 'exit', 'TERMINAL_STATE', 10), ((1, 0), 'exit', 'TERMINAL_STATE', 1), ((2, 3), 'exit', 'TERMINAL_STATE', -100), ((1, 6), 'exit', 'TERMINAL_STATE', 10), ((0, 4), 'exit', 'TERMINAL_STATE', -100), ((0, 4), 'exit', 'TERMINAL_STATE', -100), ((0, 4), 'exit', 'TERMINAL_STATE', -100), ((1, 5), 'east', (2, 5), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -100), ((0, 5), 'exit', 'TERMINAL_STATE', -100), ((1, 2), 'west', (1, 1), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -100), ((2, 3), 'exit', 'TERMINAL_STATE', -100), ((2, 5), 'exit', 'TERMINAL_STATE', -100), ((2, 1), 'exit', 'TERMINAL_STATE', -100), ((1, 3), 'west', (0, 3), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -100), ((0, 5), 'exit', 'TERMINAL_STATE', -100), ((2, 4), 'exit', 'TERMINAL_STATE', -100), ((2, 4), 'exit', 'TERMINAL_STATE', -100), ((0, 1), 'exit', 'TERMINAL_STATE', -100), ((1, 0), 'exit', 'TERMINAL_STATE', 1), ((1, 2), 'east', (2, 2), 0.0), ((1, 0), 'exit', 'TERMINAL_STATE', 1), ((1, 3), 'east', (2, 3), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -100), ((0, 3), 'exit', 'TERMINAL_STATE', -100), ((2, 2), 'exit', 'TERMINAL_STATE', -100), ((1, 5), 'east', (2, 5), 0.0), ((0, 5), 'exit', 'TERMINAL_STATE', -100), ((1, 2), 'west', (0, 2), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -100), ((0, 3), 'exit', 'TERMINAL_STATE', -100), ((2, 3), 'exit', 'TERMINAL_STATE', -100), ((1, 0), 'exit', 'TERMINAL_STATE', 1), ((1, 5), 'south', (1, 4), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -100), ((1, 4), 'south', (1, 3), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -100), ((1, 5), 'east', (2, 5), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', -100), ((1, 1), 'west', (0, 1), 0.0), ((1, 2), 'south', (1, 1), 0.0), ((0, 5), 'exit', 'TERMINAL_STATE', -100), ((0, 2), 'exit', 'TERMINAL_STATE', -100), ((2, 3), 'exit', 'TERMINAL_STATE', -100), ((2, 4), 'exit', 'TERMINAL_STATE', -100), ((1, 2), 'north', (0, 2), 0.0), ((1, 6), 'exit', 'TERMINAL_STATE', 10), ((1, 6), 'exit', 'TERMINAL_STATE', 10), ((0, 2), 'exit', 'TERMINAL_STATE', -100), ((0, 3), 'exit', 'TERMINAL_STATE', -100), ((0, 2), 'exit', 'TERMINAL_STATE', -100), ((0, 4), 'exit', 'TERMINAL_STATE', -100), ((0, 3), 'exit', 'TERMINAL_STATE', -100), ((2, 3), 'exit', 'TERMINAL_STATE', -100), ((2, 2), 'exit', 'TERMINAL_STATE', -100), ((1, 3), 'south', (1, 2), 0.0), ((2, 1), 'exit', 'TERMINAL_STATE', -100), ((1, 0), 'exit', 'TERMINAL_STATE', 1), ((0, 5), 'exit', 'TERMINAL_STATE', -100), ((1, 5), 'east', (2, 5), 0.0), ((1, 1), 'west', (0, 1), 0.0), ((1, 2), 'north', (1, 3), 0.0), ((2, 5), 'exit', 'TERMINAL_STATE', -100), ((0, 3), 'exit', 'TERMINAL_STATE', -100), ((1, 6), 'exit', 'TERMINAL_STATE', 10), ((1, 5), 'east', (2, 5), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -100), ((1, 3), 'west', (0, 3), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -100), ((1, 4), 'west', (0, 4), 0.0), ((1, 6), 'exit', 'TERMINAL_STATE', 10), ((1, 6), 'exit', 'TERMINAL_STATE', 10), ((1, 4), 'west', (0, 4), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -100), ((0, 3), 'exit', 'TERMINAL_STATE', -100), ((2, 2), 'exit', 'TERMINAL_STATE', -100), ((1, 3), 'south', (1, 2), 0.0), ((2, 3), 'exit', 'TERMINAL_STATE', -100), ((1, 3), 'south', (0, 3), 0.0), ((1, 1), 'south', (2, 1), 0.0), ((1, 2), 'north', (1, 3), 0.0), ((2, 1), 'exit', 'TERMINAL_STATE', -100), ((2, 3), 'exit', 'TERMINAL_STATE', -100), ((0, 5), 'exit', 'TERMINAL_STATE', -100), ((2, 3), 'exit', 'TERMINAL_STATE', -100), ((2, 3), 'exit', 'TERMINAL_STATE', -100), ((2, 1), 'exit', 'TERMINAL_STATE', -100), ((2, 3), 'exit', 'TERMINAL_STATE', -100), ((1, 4), 'south', (1, 3), 0.0), ((1, 0), 'exit', 'TERMINAL_STATE', 1), ((0, 4), 'exit', 'TERMINAL_STATE', -100), ((1, 1), 'south', (1, 0), 0.0), ((0, 5), 'exit', 'TERMINAL_STATE', -100), ((2, 4), 'exit', 'TERMINAL_STATE', -100), ((2, 5), 'exit', 'TERMINAL_STATE', -100), ((2, 1), 'exit', 'TERMINAL_STATE', -100), ((1, 6), 'exit', 'TERMINAL_STATE', 10), ((2, 1), 'exit', 'TERMINAL_STATE', -100), ((1, 4), 'north', (1, 5), 0.0), ((1, 0), 'exit', 'TERMINAL_STATE', 1), ((1, 4), 'north', (1, 5), 0.0), ((1, 5), 'north', (1, 6), 0.0), ((1, 6), 'exit', 'TERMINAL_STATE', 10), ((0, 3), 'exit', 'TERMINAL_STATE', -100), ((1, 5), 'south', (1, 4), 0.0), ((1, 2), 'west', (0, 2), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -100), ((1, 4), 'south', (1, 3), 0.0), ((0, 5), 'exit', 'TERMINAL_STATE', -100), ((0, 1), 'exit', 'TERMINAL_STATE', -100), ((2, 2), 'exit', 'TERMINAL_STATE', -100), ((1, 1), 'south', (1, 0), 0.0), ((1, 0), 'exit', 'TERMINAL_STATE', 1), ((0, 5), 'exit', 'TERMINAL_STATE', -100), ((2, 2), 'exit', 'TERMINAL_STATE', -100), ((0, 4), 'exit', 'TERMINAL_STATE', -100), ((2, 2), 'exit', 'TERMINAL_STATE', -100), ((0, 3), 'exit', 'TERMINAL_STATE', -100), ((1, 3), 'south', (1, 2), 0.0), ((0, 5), 'exit', 'TERMINAL_STATE', -100), ((2, 2), 'exit', 'TERMINAL_STATE', -100), ((1, 1), 'south', (1, 0), 0.0), ((1, 5), 'east', (2, 5), 0.0), ((1, 0), 'exit', 'TERMINAL_STATE', 1), ((1, 5), 'south', (2, 5), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', -100), ((1, 3), 'west', (0, 3), 0.0), ((1, 4), 'north', (1, 5), 0.0), ((1, 5), 'west', (0, 5), 0.0), ((2, 5), 'exit', 'TERMINAL_STATE', -100), ((2, 2), 'exit', 'TERMINAL_STATE', -100), ((1, 1), 'north', (1, 2), 0.0), ((1, 4), 'east', (2, 4), 0.0), ((2, 3), 'exit', 'TERMINAL_STATE', -100), ((2, 3), 'exit', 'TERMINAL_STATE', -100), ((2, 1), 'exit', 'TERMINAL_STATE', -100), ((2, 2), 'exit', 'TERMINAL_STATE', -100), ((1, 2), 'east', (2, 2), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -100), ((0, 4), 'exit', 'TERMINAL_STATE', -100), ((1, 6), 'exit', 'TERMINAL_STATE', 10), ((1, 6), 'exit', 'TERMINAL_STATE', 10), ((2, 1), 'exit', 'TERMINAL_STATE', -100), ((2, 4), 'exit', 'TERMINAL_STATE', -100), ((1, 1), 'south', (1, 0), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -100), ((2, 2), 'exit', 'TERMINAL_STATE', -100), ((0, 4), 'exit', 'TERMINAL_STATE', -100), ((1, 1), 'north', (1, 2), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -100), ((0, 2), 'exit', 'TERMINAL_STATE', -100), ((1, 1), 'south', (0, 1), 0.0), ((1, 1), 'west', (0, 1), 0.0), ((2, 5), 'exit', 'TERMINAL_STATE', -100), ((1, 3), 'north', (1, 4), 0.0), ((1, 0), 'exit', 'TERMINAL_STATE', 1), ((2, 1), 'exit', 'TERMINAL_STATE', -100), ((1, 2), 'east', (2, 2), 0.0), ((0, 5), 'exit', 'TERMINAL_STATE', -100), ((1, 5), 'west', (1, 6), 0.0), ((1, 6), 'exit', 'TERMINAL_STATE', 10), ((0, 1), 'exit', 'TERMINAL_STATE', -100), ((0, 3), 'exit', 'TERMINAL_STATE', -100), ((1, 6), 'exit', 'TERMINAL_STATE', 10), ((2, 5), 'exit', 'TERMINAL_STATE', -100), ((2, 4), 'exit', 'TERMINAL_STATE', -100), ((1, 0), 'exit', 'TERMINAL_STATE', 1), ((0, 2), 'exit', 'TERMINAL_STATE', -100), ((0, 2), 'exit', 'TERMINAL_STATE', -100), ((1, 6), 'exit', 'TERMINAL_STATE', 10), ((2, 1), 'exit', 'TERMINAL_STATE', -100), ((1, 4), 'east', (2, 4), 0.0), ((1, 2), 'north', (1, 3), 0.0), ((1, 3), 'west', (0, 3), 0.0), ((2, 1), 'exit', 'TERMINAL_STATE', -100), ((1, 1), 'west', (0, 1), 0.0), ((2, 1), 'exit', 'TERMINAL_STATE', -100), ((2, 1), 'exit', 'TERMINAL_STATE', -100), ((0, 5), 'exit', 'TERMINAL_STATE', -100), ((2, 3), 'exit', 'TERMINAL_STATE', -100), ((2, 4), 'exit', 'TERMINAL_STATE', -100), ((1, 1), 'north', (1, 2), 0.0), ((2, 5), 'exit', 'TERMINAL_STATE', -100), ((0, 2), 'exit', 'TERMINAL_STATE', -100), ((0, 5), 'exit', 'TERMINAL_STATE', -100), ((1, 5), 'south', (2, 5), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -100), ((1, 4), 'west', (0, 4), 0.0), ((1, 5), 'east', (2, 5), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -100), ((2, 3), 'exit', 'TERMINAL_STATE', -100), ((2, 5), 'exit', 'TERMINAL_STATE', -100), ((0, 2), 'exit', 'TERMINAL_STATE', -100), ((2, 3), 'exit', 'TERMINAL_STATE', -100), ((2, 1), 'exit', 'TERMINAL_STATE', -100), ((1, 5), 'west', (0, 5), 0.0), ((2, 3), 'exit', 'TERMINAL_STATE', -100), ((0, 4), 'exit', 'TERMINAL_STATE', -100), ((2, 1), 'exit', 'TERMINAL_STATE', -100), ((1, 3), 'north', (1, 4), 0.0), ((2, 1), 'exit', 'TERMINAL_STATE', -100), ((1, 5), 'north', (1, 6), 0.0), ((2, 5), 'exit', 'TERMINAL_STATE', -100), ((0, 2), 'exit', 'TERMINAL_STATE', -100), ((2, 4), 'exit', 'TERMINAL_STATE', -100), ((2, 5), 'exit', 'TERMINAL_STATE', -100), ((1, 4), 'west', (0, 4), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', -100), ((2, 2), 'exit', 'TERMINAL_STATE', -100), ((2, 4), 'exit', 'TERMINAL_STATE', -100), ((0, 4), 'exit', 'TERMINAL_STATE', -100), ((1, 0), 'exit', 'TERMINAL_STATE', 1), ((0, 1), 'exit', 'TERMINAL_STATE', -100), ((1, 2), 'west', (0, 2), 0.0), ((2, 1), 'exit', 'TERMINAL_STATE', -100), ((1, 0), 'exit', 'TERMINAL_STATE', 1), ((0, 3), 'exit', 'TERMINAL_STATE', -100), ((2, 5), 'exit', 'TERMINAL_STATE', -100), ((1, 1), 'north', (1, 2), 0.0), ((1, 2), 'south', (1, 1), 0.0), ((1, 1), 'east', (2, 1), 0.0), ((1, 2), 'east', (2, 2), 0.0), ((1, 0), 'exit', 'TERMINAL_STATE', 1), ((0, 1), 'exit', 'TERMINAL_STATE', -100), ((1, 4), 'north', (1, 5), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -100), ((2, 5), 'exit', 'TERMINAL_STATE', -100), ((0, 1), 'exit', 'TERMINAL_STATE', -100), ((1, 2), 'west', (1, 3), 0.0), ((1, 4), 'north', (1, 5), 0.0), ((0, 5), 'exit', 'TERMINAL_STATE', -100), ((0, 5), 'exit', 'TERMINAL_STATE', -100), ((1, 5), 'south', (1, 4), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', -100), ((2, 1), 'exit', 'TERMINAL_STATE', -100), ((2, 3), 'exit', 'TERMINAL_STATE', -100), ((0, 3), 'exit', 'TERMINAL_STATE', -100), ((2, 4), 'exit', 'TERMINAL_STATE', -100), ((1, 6), 'exit', 'TERMINAL_STATE', 10), ((1, 5), 'west', (0, 5), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -100), ((2, 5), 'exit', 'TERMINAL_STATE', -100), ((1, 0), 'exit', 'TERMINAL_STATE', 1), ((1, 2), 'east', (1, 1), 0.0), ((1, 0), 'exit', 'TERMINAL_STATE', 1), ((2, 3), 'exit', 'TERMINAL_STATE', -100), ((1, 5), 'north', (1, 6), 0.0), ((1, 4), 'west', (0, 4), 0.0), ((2, 1), 'exit', 'TERMINAL_STATE', -100), ((1, 6), 'exit', 'TERMINAL_STATE', 10), ((2, 4), 'exit', 'TERMINAL_STATE', -100), ((0, 4), 'exit', 'TERMINAL_STATE', -100), ((1, 1), 'east', (2, 1), 0.0), ((0, 5), 'exit', 'TERMINAL_STATE', -100), ((1, 0), 'exit', 'TERMINAL_STATE', 1), ((0, 3), 'exit', 'TERMINAL_STATE', -100), ((0, 2), 'exit', 'TERMINAL_STATE', -100), ((0, 2), 'exit', 'TERMINAL_STATE', -100), ((2, 3), 'exit', 'TERMINAL_STATE', -100), ((0, 1), 'exit', 'TERMINAL_STATE', -100), ((0, 2), 'exit', 'TERMINAL_STATE', -100), ((0, 5), 'exit', 'TERMINAL_STATE', -100), ((0, 5), 'exit', 'TERMINAL_STATE', -100), ((2, 4), 'exit', 'TERMINAL_STATE', -100), ((1, 6), 'exit', 'TERMINAL_STATE', 10), ((0, 1), 'exit', 'TERMINAL_STATE', -100), ((0, 4), 'exit', 'TERMINAL_STATE', -100), ((0, 1), 'exit', 'TERMINAL_STATE', -100), ((1, 1), 'north', (1, 2), 0.0), ((2, 5), 'exit', 'TERMINAL_STATE', -100), ((0, 3), 'exit', 'TERMINAL_STATE', -100), ((2, 4), 'exit', 'TERMINAL_STATE', -100), ((2, 4), 'exit', 'TERMINAL_STATE', -100), ((0, 5), 'exit', 'TERMINAL_STATE', -100), ((1, 3), 'south', (1, 2), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -100), ((2, 2), 'exit', 'TERMINAL_STATE', -100), ((1, 4), 'west', (0, 4), 0.0), ((2, 3), 'exit', 'TERMINAL_STATE', -100), ((2, 4), 'exit', 'TERMINAL_STATE', -100), ((2, 5), 'exit', 'TERMINAL_STATE', -100), ((0, 5), 'exit', 'TERMINAL_STATE', -100), ((2, 5), 'exit', 'TERMINAL_STATE', -100), ((0, 2), 'exit', 'TERMINAL_STATE', -100), ((2, 2), 'exit', 'TERMINAL_STATE', -100), ((1, 3), 'east', (1, 2), 0.0), ((1, 4), 'west', (1, 3), 0.0), ((1, 5), 'west', (0, 5), 0.0), ((1, 1), 'west', (0, 1), 0.0), ((1, 5), 'east', (1, 4), 0.0), ((2, 3), 'exit', 'TERMINAL_STATE', -100), ((2, 5), 'exit', 'TERMINAL_STATE', -100), ((1, 3), 'south', (1, 2), 0.0), ((1, 5), 'west', (1, 4), 0.0), ((1, 2), 'west', (0, 2), 0.0), ((2, 3), 'exit', 'TERMINAL_STATE', -100), ((1, 2), 'south', (2, 2), 0.0), ((1, 2), 'east', (2, 2), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -100), ((2, 5), 'exit', 'TERMINAL_STATE', -100), ((1, 4), 'east', (2, 4), 0.0), ((2, 3), 'exit', 'TERMINAL_STATE', -100), ((1, 0), 'exit', 'TERMINAL_STATE', 1), ((1, 1), 'south', (1, 0), 0.0), ((1, 4), 'north', (1, 5), 0.0), ((1, 1), 'south', (1, 0), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -100), ((0, 1), 'exit', 'TERMINAL_STATE', -100), ((1, 4), 'south', (2, 4), 0.0), ((2, 3), 'exit', 'TERMINAL_STATE', -100), ((1, 6), 'exit', 'TERMINAL_STATE', 10), ((1, 1), 'west', (1, 2), 0.0), ((0, 5), 'exit', 'TERMINAL_STATE', -100), ((1, 5), 'north', (0, 5), 0.0), ((1, 0), 'exit', 'TERMINAL_STATE', 1), ((0, 4), 'exit', 'TERMINAL_STATE', -100), ((1, 3), 'west', (0, 3), 0.0), ((1, 6), 'exit', 'TERMINAL_STATE', 10), ((2, 5), 'exit', 'TERMINAL_STATE', -100), ((1, 2), 'east', (2, 2), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -100), ((1, 2), 'east', (2, 2), 0.0), ((1, 0), 'exit', 'TERMINAL_STATE', 1), ((2, 4), 'exit', 'TERMINAL_STATE', -100), ((0, 2), 'exit', 'TERMINAL_STATE', -100), ((2, 4), 'exit', 'TERMINAL_STATE', -100), ((0, 2), 'exit', 'TERMINAL_STATE', -100), ((2, 3), 'exit', 'TERMINAL_STATE', -100), ((2, 5), 'exit', 'TERMINAL_STATE', -100), ((0, 4), 'exit', 'TERMINAL_STATE', -100), ((0, 3), 'exit', 'TERMINAL_STATE', -100), ((1, 1), 'east', (2, 1), 0.0), ((2, 3), 'exit', 'TERMINAL_STATE', -100), ((0, 2), 'exit', 'TERMINAL_STATE', -100), ((0, 4), 'exit', 'TERMINAL_STATE', -100), ((2, 2), 'exit', 'TERMINAL_STATE', -100), ((2, 4), 'exit', 'TERMINAL_STATE', -100), ((0, 4), 'exit', 'TERMINAL_STATE', -100), ((1, 1), 'east', (2, 1), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -100), ((0, 4), 'exit', 'TERMINAL_STATE', -100), ((1, 6), 'exit', 'TERMINAL_STATE', 10), ((0, 4), 'exit', 'TERMINAL_STATE', -100), ((0, 5), 'exit', 'TERMINAL_STATE', -100), ((1, 6), 'exit', 'TERMINAL_STATE', 10), ((2, 1), 'exit', 'TERMINAL_STATE', -100), ((1, 5), 'south', (1, 4), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -100), ((1, 3), 'south', (1, 2), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', -100), ((2, 2), 'exit', 'TERMINAL_STATE', -100), ((2, 5), 'exit', 'TERMINAL_STATE', -100), ((2, 1), 'exit', 'TERMINAL_STATE', -100), ((1, 4), 'north', (1, 5), 0.0), ((2, 3), 'exit', 'TERMINAL_STATE', -100), ((2, 3), 'exit', 'TERMINAL_STATE', -100), ((1, 4), 'east', (2, 4), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -100), ((1, 0), 'exit', 'TERMINAL_STATE', 1), ((1, 4), 'east', (2, 4), 0.0), ((2, 1), 'exit', 'TERMINAL_STATE', -100), ((1, 6), 'exit', 'TERMINAL_STATE', 10), ((1, 3), 'south', (1, 2), 0.0), ((1, 6), 'exit', 'TERMINAL_STATE', 10), ((0, 2), 'exit', 'TERMINAL_STATE', -100), ((2, 1), 'exit', 'TERMINAL_STATE', -100), ((0, 4), 'exit', 'TERMINAL_STATE', -100), ((0, 2), 'exit', 'TERMINAL_STATE', -100), ((0, 4), 'exit', 'TERMINAL_STATE', -100), ((0, 2), 'exit', 'TERMINAL_STATE', -100), ((2, 3), 'exit', 'TERMINAL_STATE', -100), ((0, 2), 'exit', 'TERMINAL_STATE', -100), ((2, 5), 'exit', 'TERMINAL_STATE', -100), ((1, 3), 'west', (0, 3), 0.0), ((2, 5), 'exit', 'TERMINAL_STATE', -100), ((1, 3), 'north', (1, 4), 0.0), ((2, 5), 'exit', 'TERMINAL_STATE', -100), ((2, 4), 'exit', 'TERMINAL_STATE', -100), ((2, 1), 'exit', 'TERMINAL_STATE', -100), ((2, 5), 'exit', 'TERMINAL_STATE', -100), ((0, 3), 'exit', 'TERMINAL_STATE', -100), ((1, 3), 'west', (0, 3), 0.0), ((2, 1), 'exit', 'TERMINAL_STATE', -100), ((1, 2), 'east', (2, 2), 0.0), ((1, 4), 'south', (1, 3), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -100), ((0, 4), 'exit', 'TERMINAL_STATE', -100), ((2, 5), 'exit', 'TERMINAL_STATE', -100), ((1, 1), 'north', (1, 2), 0.0), ((2, 1), 'exit', 'TERMINAL_STATE', -100), ((0, 3), 'exit', 'TERMINAL_STATE', -100), ((1, 3), 'south', (1, 2), 0.0), ((1, 4), 'south', (1, 3), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -100), ((2, 4), 'exit', 'TERMINAL_STATE', -100), ((0, 2), 'exit', 'TERMINAL_STATE', -100), ((1, 2), 'east', (2, 2), 0.0), ((0, 5), 'exit', 'TERMINAL_STATE', -100), ((0, 5), 'exit', 'TERMINAL_STATE', -100), ((0, 1), 'exit', 'TERMINAL_STATE', -100), ((2, 5), 'exit', 'TERMINAL_STATE', -100), ((1, 1), 'east', (2, 1), 0.0), ((1, 6), 'exit', 'TERMINAL_STATE', 10), ((1, 2), 'east', (2, 2), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -100), ((1, 0), 'exit', 'TERMINAL_STATE', 1), ((1, 5), 'west', (1, 6), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -100), ((1, 4), 'west', (0, 4), 0.0), ((1, 5), 'south', (1, 4), 0.0), ((1, 3), 'west', (0, 3), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -100), ((0, 2), 'exit', 'TERMINAL_STATE', -100), ((1, 5), 'west', (0, 5), 0.0), ((2, 5), 'exit', 'TERMINAL_STATE', -100), ((2, 5), 'exit', 'TERMINAL_STATE', -100), ((1, 3), 'north', (1, 4), 0.0), ((1, 2), 'north', (1, 3), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -100), ((2, 4), 'exit', 'TERMINAL_STATE', -100), ((1, 0), 'exit', 'TERMINAL_STATE', 1), ((1, 0), 'exit', 'TERMINAL_STATE', 1), ((0, 2), 'exit', 'TERMINAL_STATE', -100), ((2, 5), 'exit', 'TERMINAL_STATE', -100), ((2, 1), 'exit', 'TERMINAL_STATE', -100), ((1, 3), 'south', (1, 2), 0.0), ((1, 6), 'exit', 'TERMINAL_STATE', 10), ((0, 1), 'exit', 'TERMINAL_STATE', -100), ((2, 4), 'exit', 'TERMINAL_STATE', -100), ((1, 4), 'west', (0, 4), 0.0), ((1, 5), 'north', (1, 6), 0.0), ((2, 1), 'exit', 'TERMINAL_STATE', -100), ((0, 5), 'exit', 'TERMINAL_STATE', -100), ((2, 1), 'exit', 'TERMINAL_STATE', -100), ((0, 4), 'exit', 'TERMINAL_STATE', -100), ((0, 5), 'exit', 'TERMINAL_STATE', -100), ((0, 5), 'exit', 'TERMINAL_STATE', -100), ((0, 4), 'exit', 'TERMINAL_STATE', -100), ((2, 4), 'exit', 'TERMINAL_STATE', -100), ((1, 2), 'north', (1, 3), 0.0), ((2, 1), 'exit', 'TERMINAL_STATE', -100), ((0, 5), 'exit', 'TERMINAL_STATE', -100), ((0, 4), 'exit', 'TERMINAL_STATE', -100), ((2, 1), 'exit', 'TERMINAL_STATE', -100), ((1, 3), 'west', (0, 3), 0.0), ((1, 2), 'north', (1, 3), 0.0), ((1, 5), 'south', (1, 4), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -100)]53 elif test_name == '4-discountgrid':54 list_experiences = [((1, 0), 'south', (1, 0), 0.0), ((1, 0), 'south', (1, 0), 0.0), ((3, 0), 'south', (3, 0), 0.0), ((1, 0), 'south', (1, 0), 0.0), ((3, 0), 'south', (3, 0), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((1, 0), 'south', (1, 0), 0.0), ((3, 0), 'south', (3, 0), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((1, 0), 'east', (2, 0), 0.0), ((1, 0), 'south', (1, 0), 0.0), ((3, 0), 'south', (3, 0), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((1, 0), 'east', (2, 0), 0.0), ((4, 1), 'west', (4, 1), 0.0), ((1, 0), 'south', (1, 0), 0.0), ((3, 0), 'south', (3, 0), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((1, 0), 'east', (2, 0), 0.0), ((4, 1), 'west', (4, 1), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((1, 0), 'south', (1, 0), 0.0), ((3, 0), 'south', (3, 0), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((1, 0), 'east', (2, 0), 0.0), ((4, 1), 'west', (4, 1), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((1, 0), 'south', (1, 0), 0.0), ((3, 0), 'south', (3, 0), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((1, 0), 'east', (2, 0), 0.0), ((4, 1), 'west', (4, 1), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((1, 0), 'south', (1, 0), 0.0), ((3, 0), 'south', (3, 0), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((1, 0), 'east', (2, 0), 0.0), ((4, 1), 'west', (4, 1), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((1, 1), 'north', (0, 1), 0.0), ((1, 0), 'south', (1, 0), 0.0), ((3, 0), 'south', (3, 0), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((1, 0), 'east', (2, 0), 0.0), ((4, 1), 'west', (4, 1), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((1, 1), 'north', (0, 1), 0.0), ((2, 0), 'south', (2, 0), 0.0), ((3, 3), 'east', (4, 3), 0.0), ((4, 0), 'west', (4, 0), 0.0), ((4, 2), 'north', (3, 2), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((3, 0), 'west', (2, 0), 0.0), ((1, 3), 'west', (0, 3), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((4, 3), 'east', (4, 3), 0.0), ((3, 2), 'north', (3, 3), 0.0), ((4, 4), 'east', (4, 4), 0.0), ((3, 3), 'north', (3, 3), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((4, 1), 'east', (4, 2), 0.0), ((4, 0), 'west', (3, 0), 0.0), ((1, 1), 'east', (1, 1), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((3, 3), 'west', (3, 3), 0.0), ((4, 4), 'south', (4, 3), 0.0), ((1, 1), 'north', (1, 2), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((3, 0), 'north', (3, 0), 0.0), ((4, 2), 'west', (4, 3), 0.0), ((4, 2), 'west', (3, 2), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((1, 0), 'west', (1, 1), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((1, 4), 'south', (1, 3), 0.0), ((3, 0), 'south', (3, 0), 0.0), ((3, 0), 'west', (2, 0), 0.0), ((1, 2), 'south', (1, 1), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((4, 4), 'west', (3, 4), 0.0), ((3, 0), 'west', (2, 0), 0.0), ((1, 1), 'west', (0, 1), 0.0), ((1, 1), 'west', (0, 1), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((1, 1), 'north', (0, 1), 0.0), ((1, 0), 'north', (1, 1), 0.0), ((3, 3), 'north', (3, 4), 0.0), ((1, 2), 'east', (2, 2), 0.0), ((4, 1), 'north', (4, 2), 0.0), ((3, 2), 'east', (4, 2), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((3, 2), 'east', (4, 2), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((1, 0), 'west', (0, 0), 0.0), ((1, 4), 'west', (0, 4), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((4, 2), 'east', (4, 2), 0.0), ((4, 3), 'east', (4, 3), 0.0), ((3, 4), 'east', (4, 4), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((1, 0), 'north', (1, 1), 0.0), ((1, 1), 'east', (1, 2), 0.0), ((4, 2), 'south', (4, 1), 0.0), ((4, 2), 'east', (4, 2), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((1, 1), 'south', (1, 0), 0.0), ((1, 4), 'east', (2, 4), 0.0), ((1, 2), 'west', (0, 2), 0.0), ((2, 0), 'east', (3, 0), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((4, 0), 'east', (4, 1), 0.0), ((3, 0), 'east', (3, 0), 0.0), ((1, 0), 'west', (0, 0), 0.0), ((1, 4), 'west', (0, 4), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((4, 1), 'north', (4, 2), 0.0), ((1, 1), 'west', (0, 1), 0.0), ((3, 2), 'south', (3, 2), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((3, 0), 'east', (4, 0), 0.0), ((4, 0), 'south', (4, 0), 0.0), ((1, 3), 'west', (0, 3), 0.0), ((1, 4), 'south', (1, 3), 0.0), ((1, 0), 'south', (1, 0), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((4, 2), 'east', (4, 2), 0.0), ((4, 2), 'east', (4, 2), 0.0), ((2, 0), 'north', (2, 0), 0.0), ((3, 2), 'east', (4, 2), 0.0), ((3, 2), 'south', (3, 2), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((4, 1), 'east', (4, 1), 0.0), ((4, 0), 'north', (4, 1), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((3, 4), 'east', (4, 4), 0.0), ((1, 2), 'south', (1, 1), 0.0), ((1, 0), 'north', (1, 1), 0.0), ((3, 0), 'east', (4, 0), 0.0), ((1, 3), 'west', (0, 3), 0.0), ((1, 4), 'north', (1, 4), 0.0), ((4, 4), 'west', (3, 4), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((3, 2), 'south', (3, 2), 0.0), ((3, 2), 'east', (4, 2), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((3, 3), 'east', (4, 3), 0.0), ((3, 3), 'west', (3, 3), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((4, 0), 'north', (4, 0), 0.0), ((2, 0), 'south', (2, 0), 0.0), ((4, 1), 'east', (4, 1), 0.0), ((2, 0), 'south', (2, 0), 0.0), ((1, 3), 'south', (1, 3), 0.0), ((2, 0), 'north', (2, 0), 0.0), ((3, 3), 'south', (4, 3), 0.0), ((4, 1), 'north', (4, 2), 0.0), ((1, 0), 'north', (1, 1), 0.0), ((4, 1), 'east', (4, 1), 0.0), ((4, 2), 'west', (3, 2), 0.0), ((3, 4), 'north', (4, 4), 0.0), ((4, 1), 'west', (4, 1), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((1, 2), 'west', (0, 2), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((1, 3), 'south', (1, 2), 0.0), ((1, 1), 'south', (1, 0), 0.0), ((4, 2), 'east', (4, 2), 0.0), ((4, 3), 'west', (3, 3), 0.0), ((3, 4), 'west', (2, 4), 0.0), ((3, 2), 'east', (4, 2), 0.0), ((3, 4), 'east', (4, 4), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((1, 2), 'south', (1, 1), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((3, 0), 'north', (2, 0), 0.0), ((3, 2), 'north', (2, 2), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((3, 0), 'south', (3, 0), 0.0), ((2, 0), 'west', (2, 0), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((1, 0), 'west', (0, 0), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((3, 4), 'west', (2, 4), 0.0), ((1, 3), 'south', (1, 2), 0.0), ((1, 2), 'east', (1, 1), 0.0), ((1, 0), 'north', (0, 0), 0.0), ((4, 0), 'south', (4, 0), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((4, 0), 'south', (4, 0), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((1, 0), 'east', (2, 0), 0.0), ((4, 0), 'east', (4, 0), 0.0), ((1, 3), 'south', (1, 2), 0.0), ((3, 0), 'east', (4, 0), 0.0), ((1, 1), 'east', (1, 1), 0.0), ((3, 0), 'south', (3, 0), 0.0), ((3, 4), 'south', (3, 3), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((3, 2), 'west', (2, 2), 0.0), ((4, 4), 'east', (4, 4), 0.0), ((4, 0), 'south', (3, 0), 0.0), ((1, 2), 'north', (1, 3), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((4, 2), 'south', (3, 2), 0.0), ((4, 1), 'south', (4, 0), 0.0), ((3, 3), 'south', (3, 2), 0.0), ((4, 0), 'east', (4, 0), 0.0), ((1, 4), 'east', (2, 4), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((3, 3), 'south', (3, 2), 0.0), ((3, 2), 'west', (2, 2), 0.0), ((3, 4), 'west', (2, 4), 0.0), ((4, 2), 'south', (4, 1), 0.0), ((1, 3), 'south', (1, 2), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((4, 0), 'north', (4, 1), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((1, 3), 'north', (0, 3), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((1, 3), 'south', (1, 2), 0.0), ((1, 3), 'west', (1, 2), 0.0), ((4, 4), 'north', (4, 4), 0.0), ((2, 0), 'north', (2, 0), 0.0), ((1, 2), 'north', (1, 3), 0.0), ((3, 4), 'west', (2, 4), 0.0), ((2, 0), 'east', (3, 0), 0.0), ((1, 0), 'west', (0, 0), 0.0), ((3, 0), 'west', (3, 0), 0.0), ((3, 3), 'east', (4, 3), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((3, 2), 'east', (4, 2), 0.0), ((4, 4), 'west', (3, 4), 0.0), ((4, 3), 'east', (4, 2), 0.0), ((1, 1), 'south', (1, 1), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((3, 2), 'east', (4, 2), 0.0), ((3, 4), 'south', (3, 3), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((1, 4), 'north', (1, 4), 0.0), ((2, 0), 'west', (2, 0), 0.0), ((3, 3), 'south', (3, 2), 0.0), ((1, 3), 'west', (0, 3), 0.0), ((3, 3), 'north', (3, 4), 0.0), ((3, 4), 'south', (4, 4), 0.0), ((1, 0), 'east', (2, 0), 0.0), ((4, 2), 'east', (4, 2), 0.0), ((4, 2), 'south', (4, 1), 0.0), ((1, 3), 'north', (1, 4), 0.0), ((4, 4), 'north', (4, 4), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((1, 0), 'north', (0, 0), 0.0), ((3, 2), 'south', (4, 2), 0.0), ((1, 0), 'east', (2, 0), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((3, 0), 'east', (4, 0), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((4, 1), 'north', (4, 2), 0.0), ((4, 4), 'north', (4, 4), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((4, 1), 'south', (4, 0), 0.0), ((3, 4), 'east', (4, 4), 0.0), ((3, 0), 'west', (3, 0), 0.0), ((4, 1), 'south', (4, 0), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((3, 4), 'north', (3, 4), 0.0), ((2, 0), 'north', (2, 0), 0.0), ((3, 4), 'west', (2, 4), 0.0), ((3, 0), 'north', (3, 0), 0.0), ((4, 4), 'west', (3, 4), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((4, 3), 'south', (3, 3), 0.0), ((4, 4), 'south', (4, 3), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((4, 2), 'east', (4, 2), 0.0), ((4, 0), 'west', (4, 0), 0.0), ((4, 3), 'west', (3, 3), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((1, 1), 'south', (1, 0), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((1, 4), 'west', (0, 4), 0.0), ((3, 4), 'west', (2, 4), 0.0), ((1, 1), 'west', (0, 1), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((4, 4), 'east', (4, 4), 0.0), ((1, 3), 'north', (1, 4), 0.0), ((2, 0), 'south', (2, 0), 0.0), ((1, 2), 'east', (2, 2), 0.0), ((2, 0), 'east', (2, 0), 0.0), ((1, 1), 'north', (0, 1), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((4, 4), 'east', (4, 3), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((1, 4), 'west', (1, 3), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((1, 0), 'east', (2, 0), 0.0), ((1, 0), 'north', (1, 1), 0.0), ((3, 0), 'south', (4, 0), 0.0), ((4, 0), 'north', (4, 1), 0.0), ((3, 4), 'east', (4, 4), 0.0), ((4, 1), 'south', (4, 0), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((4, 2), 'east', (4, 2), 0.0), ((3, 2), 'east', (3, 2), 0.0), ((3, 0), 'west', (2, 0), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((4, 4), 'south', (4, 3), 0.0), ((1, 2), 'west', (0, 2), 0.0), ((1, 4), 'east', (2, 4), 0.0), ((1, 1), 'south', (1, 0), 0.0), ((4, 1), 'east', (4, 0), 0.0), ((3, 0), 'north', (3, 0), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((3, 3), 'east', (3, 4), 0.0), ((3, 2), 'west', (2, 2), 0.0), ((4, 2), 'east', (4, 2), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((1, 3), 'east', (1, 3), 0.0), ((1, 0), 'east', (1, 1), 0.0), ((1, 1), 'west', (0, 1), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((4, 1), 'south', (4, 0), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((1, 0), 'south', (2, 0), 0.0), ((1, 0), 'east', (2, 0), 0.0), ((4, 2), 'north', (4, 3), 0.0), ((3, 2), 'south', (3, 2), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((1, 3), 'north', (1, 4), 0.0), ((4, 4), 'west', (3, 4), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((4, 3), 'north', (4, 4), 0.0), ((4, 3), 'east', (4, 3), 0.0), ((1, 0), 'west', (1, 1), 0.0), ((2, 0), 'south', (2, 0), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((4, 0), 'south', (4, 0), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((4, 1), 'north', (4, 2), 0.0), ((4, 3), 'east', (4, 4), 0.0), ((4, 4), 'east', (4, 4), 0.0), ((1, 0), 'north', (2, 0), 0.0), ((4, 4), 'west', (3, 4), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((4, 0), 'east', (4, 0), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((3, 0), 'west', (2, 0), 0.0), ((1, 3), 'west', (0, 3), 0.0), ((3, 0), 'east', (4, 0), 0.0), ((4, 1), 'east', (4, 1), 0.0), ((4, 4), 'west', (3, 4), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((3, 2), 'west', (2, 2), 0.0), ((1, 4), 'west', (0, 4), 0.0), ((4, 2), 'east', (4, 2), 0.0), ((1, 4), 'south', (1, 3), 0.0), ((1, 4), 'east', (2, 4), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((4, 4), 'west', (3, 4), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((4, 2), 'south', (4, 1), 0.0), ((1, 1), 'south', (1, 0), 0.0), ((1, 3), 'south', (0, 3), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((1, 3), 'south', (1, 2), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((4, 1), 'east', (4, 1), 0.0), ((3, 3), 'north', (3, 3), 0.0), ((1, 3), 'west', (0, 3), 0.0), ((1, 1), 'north', (0, 1), 0.0), ((3, 0), 'north', (3, 0), 0.0), ((1, 2), 'north', (0, 2), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((3, 2), 'west', (3, 2), 0.0), ((4, 4), 'south', (4, 4), 0.0), ((1, 4), 'east', (1, 4), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((1, 4), 'east', (2, 4), 0.0), ((1, 2), 'west', (0, 2), 0.0), ((4, 2), 'north', (4, 3), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((4, 3), 'south', (4, 2), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((4, 1), 'south', (4, 0), 0.0), ((4, 4), 'south', (4, 3), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((1, 2), 'east', (2, 2), 0.0), ((4, 1), 'south', (4, 0), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((4, 1), 'east', (4, 1), 0.0), ((4, 3), 'west', (3, 3), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((1, 3), 'east', (1, 3), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((3, 3), 'west', (3, 4), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((1, 0), 'south', (1, 0), 0.0), ((3, 2), 'south', (3, 2), 0.0), ((3, 4), 'west', (2, 4), 0.0), ((3, 0), 'south', (3, 0), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((2, 0), 'south', (2, 0), 0.0), ((4, 2), 'south', (4, 1), 0.0), ((4, 0), 'east', (4, 0), 0.0), ((4, 4), 'west', (3, 4), 0.0), ((3, 3), 'west', (3, 3), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((4, 1), 'west', (4, 1), 0.0), ((4, 1), 'west', (4, 1), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((1, 1), 'east', (1, 1), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((3, 4), 'west', (3, 4), 0.0), ((3, 2), 'south', (3, 2), 0.0), ((2, 0), 'south', (2, 0), 0.0), ((3, 3), 'south', (3, 2), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((3, 3), 'north', (3, 4), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((4, 2), 'south', (4, 1), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((4, 3), 'north', (4, 3), 0.0), ((2, 0), 'west', (1, 0), 0.0), ((4, 4), 'north', (4, 4), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((4, 4), 'east', (4, 4), 0.0), ((4, 2), 'north', (4, 3), 0.0), ((3, 4), 'north', (3, 4), 0.0), ((4, 4), 'west', (3, 4), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((3, 4), 'south', (3, 3), 0.0), ((1, 4), 'east', (2, 4), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((4, 3), 'east', (4, 3), 0.0), ((1, 3), 'north', (1, 4), 0.0), ((3, 4), 'east', (4, 4), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((2, 0), 'south', (2, 0), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((4, 2), 'north', (4, 2), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((2, 0), 'east', (3, 0), 0.0), ((1, 0), 'south', (2, 0), 0.0), ((1, 1), 'south', (1, 0), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((4, 4), 'north', (4, 4), 0.0), ((1, 3), 'east', (1, 3), 0.0), ((3, 2), 'west', (2, 2), 0.0), ((1, 4), 'east', (2, 4), 0.0), ((1, 0), 'west', (1, 0), 0.0), ((1, 1), 'south', (1, 0), 0.0), ((3, 0), 'west', (3, 0), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((3, 0), 'south', (3, 0), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((3, 0), 'west', (3, 0), 0.0), ((4, 4), 'north', (4, 4), 0.0), ((4, 4), 'north', (4, 4), 0.0), ((2, 0), 'north', (1, 0), 0.0), ((1, 4), 'north', (1, 4), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((4, 2), 'north', (4, 3), 0.0), ((1, 1), 'west', (0, 1), 0.0), ((1, 1), 'north', (1, 2), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((4, 4), 'north', (4, 4), 0.0), ((3, 4), 'south', (3, 3), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((3, 2), 'south', (2, 2), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((4, 3), 'west', (3, 3), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((3, 0), 'north', (3, 0), 0.0), ((3, 4), 'west', (2, 4), 0.0), ((1, 0), 'west', (0, 0), 0.0), ((3, 4), 'east', (4, 4), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((1, 0), 'south', (1, 0), 0.0), ((1, 0), 'north', (2, 0), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((4, 2), 'south', (4, 1), 0.0), ((1, 4), 'north', (1, 4), 0.0), ((3, 4), 'west', (2, 4), 0.0), ((1, 0), 'north', (1, 1), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((3, 4), 'north', (3, 4), 0.0), ((2, 0), 'west', (1, 0), 0.0), ((1, 4), 'north', (1, 4), 0.0), ((3, 2), 'south', (2, 2), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((3, 3), 'east', (3, 4), 0.0), ((4, 0), 'east', (4, 0), 0.0), ((3, 0), 'east', (4, 0), 0.0), ((4, 1), 'east', (4, 1), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((1, 4), 'west', (0, 4), 0.0), ((4, 3), 'west', (4, 2), 0.0), ((4, 3), 'west', (3, 3), 0.0), ((4, 4), 'west', (4, 4), 0.0), ((4, 2), 'north', (4, 3), 0.0), ((4, 3), 'north', (4, 3), 0.0), ((1, 2), 'west', (0, 2), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((4, 3), 'east', (4, 3), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((4, 3), 'south', (4, 2), 0.0), ((1, 4), 'north', (0, 4), 0.0), ((1, 0), 'west', (1, 1), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((3, 2), 'north', (3, 3), 0.0), ((1, 3), 'west', (0, 3), 0.0), ((3, 0), 'west', (3, 0), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((1, 2), 'north', (1, 3), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((1, 3), 'west', (0, 3), 0.0), ((2, 0), 'east', (3, 0), 0.0), ((3, 4), 'west', (2, 4), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((1, 3), 'south', (0, 3), 0.0), ((1, 3), 'west', (0, 3), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((2, 0), 'west', (1, 0), 0.0), ((3, 3), 'north', (4, 3), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((4, 0), 'west', (3, 0), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((4, 2), 'east', (4, 2), 0.0), ((1, 3), 'north', (1, 4), 0.0), ((1, 4), 'south', (1, 3), 0.0), ((4, 4), 'south', (4, 3), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((1, 1), 'south', (0, 1), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((3, 3), 'south', (3, 2), 0.0), ((3, 4), 'south', (4, 4), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((4, 1), 'west', (4, 1), 0.0), ((3, 2), 'north', (3, 3), 0.0), ((4, 0), 'east', (4, 0), 0.0), ((1, 0), 'north', (1, 1), 0.0), ((1, 4), 'west', (0, 4), 0.0), ((3, 3), 'west', (3, 3), 0.0), ((3, 4), 'east', (4, 4), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((3, 0), 'west', (2, 0), 0.0), ((1, 4), 'north', (1, 4), 0.0), ((1, 2), 'south', (1, 1), 0.0), ((4, 3), 'south', (4, 2), 0.0), ((3, 2), 'south', (3, 2), 0.0), ((2, 0), 'south', (2, 0), 0.0), ((4, 1), 'north', (4, 2), 0.0), ((1, 1), 'east', (1, 2), 0.0), ((2, 0), 'west', (1, 0), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((2, 0), 'south', (2, 0), 0.0), ((3, 2), 'east', (4, 2), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((1, 1), 'south', (1, 0), 0.0), ((2, 0), 'east', (3, 0), 0.0), ((1, 2), 'north', (1, 3), 0.0), ((1, 2), 'south', (1, 1), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((1, 0), 'south', (1, 0), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((4, 4), 'north', (4, 4), 0.0), ((1, 0), 'east', (1, 0), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((3, 3), 'north', (4, 3), 0.0), ((4, 1), 'east', (4, 1), 0.0), ((3, 0), 'east', (4, 0), 0.0), ((1, 1), 'north', (1, 2), 0.0), ((4, 0), 'north', (4, 1), 0.0), ((1, 3), 'east', (1, 3), 0.0), ((3, 3), 'east', (3, 2), 0.0), ((1, 0), 'west', (0, 0), 0.0), ((3, 2), 'east', (4, 2), 0.0), ((4, 3), 'south', (4, 2), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((1, 3), 'west', (0, 3), 0.0), ((1, 0), 'east', (2, 0), 0.0), ((3, 2), 'west', (3, 3), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((4, 2), 'south', (4, 1), 0.0), ((4, 2), 'north', (4, 3), 0.0), ((4, 1), 'east', (4, 1), 0.0), ((1, 3), 'north', (1, 4), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((4, 1), 'west', (4, 1), 0.0), ((4, 2), 'south', (4, 1), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((4, 2), 'east', (4, 2), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((3, 2), 'north', (3, 3), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((1, 4), 'south', (1, 3), 0.0), ((4, 4), 'north', (4, 4), 0.0), ((4, 3), 'south', (4, 2), 0.0), ((4, 1), 'north', (4, 2), 0.0), ((3, 0), 'south', (3, 0), 0.0), ((3, 0), 'north', (3, 0), 0.0), ((1, 0), 'east', (1, 0), 0.0), ((2, 0), 'east', (3, 0), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((3, 4), 'east', (4, 4), 0.0), ((4, 1), 'north', (4, 2), 0.0), ((2, 0), 'north', (2, 0), 0.0), ((4, 2), 'south', (4, 1), 0.0), ((4, 0), 'west', (4, 1), 0.0), ((1, 3), 'north', (1, 4), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((4, 1), 'south', (4, 0), 0.0), ((1, 2), 'west', (1, 1), 0.0), ((4, 4), 'north', (4, 4), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((4, 4), 'west', (3, 4), 0.0), ((4, 1), 'north', (4, 2), 0.0), ((1, 4), 'north', (2, 4), 0.0), ((3, 3), 'south', (3, 2), 0.0), ((4, 1), 'north', (4, 2), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((3, 2), 'west', (2, 2), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((4, 1), 'west', (4, 2), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((4, 1), 'east', (4, 1), 0.0), ((4, 2), 'south', (4, 1), 0.0), ((1, 4), 'north', (2, 4), 0.0), ((1, 0), 'west', (0, 0), 0.0), ((4, 4), 'south', (4, 3), 0.0), ((4, 2), 'north', (4, 3), 0.0), ((4, 4), 'west', (3, 4), 0.0), ((4, 0), 'east', (4, 0), 0.0), ((1, 3), 'south', (1, 2), 0.0), ((1, 0), 'west', (0, 0), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((4, 4), 'north', (4, 4), 0.0), ((4, 0), 'east', (4, 0), 0.0), ((3, 3), 'west', (3, 3), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((1, 1), 'south', (1, 1), 0.0), ((3, 0), 'east', (4, 0), 0.0), ((3, 3), 'west', (3, 3), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((3, 4), 'west', (2, 4), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((1, 0), 'south', (1, 0), 0.0), ((3, 2), 'east', (4, 2), 0.0), ((4, 4), 'south', (4, 3), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((2, 0), 'south', (1, 0), 0.0), ((4, 0), 'east', (4, 0), 0.0), ((3, 3), 'south', (4, 3), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((1, 3), 'south', (1, 2), 0.0), ((1, 3), 'west', (0, 3), 0.0), ((4, 4), 'south', (4, 3), 0.0), ((1, 1), 'south', (1, 0), 0.0), ((3, 4), 'east', (4, 4), 0.0), ((4, 4), 'south', (4, 3), 0.0), ((2, 0), 'north', (2, 0), 0.0), ((4, 1), 'south', (4, 0), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((2, 0), 'south', (2, 0), 0.0), ((3, 4), 'south', (3, 3), 0.0), ((4, 0), 'north', (4, 1), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((4, 3), 'east', (4, 4), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((1, 2), 'south', (0, 2), 0.0), ((4, 0), 'south', (4, 0), 0.0), ((1, 1), 'south', (1, 0), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((4, 1), 'west', (4, 0), 0.0), ((4, 2), 'north', (4, 3), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((1, 0), 'west', (0, 0), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((1, 2), 'west', (0, 2), 0.0), ((1, 0), 'north', (1, 1), 0.0), ((1, 1), 'east', (1, 1), 0.0), ((1, 3), 'west', (0, 3), 0.0), ((4, 2), 'west', (3, 2), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((4, 1), 'south', (4, 1), 0.0), ((4, 4), 'north', (4, 4), 0.0), ((4, 4), 'east', (4, 4), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((1, 2), 'west', (0, 2), 0.0), ((1, 4), 'east', (2, 4), 0.0), ((4, 1), 'south', (4, 1), 0.0), ((3, 3), 'south', (3, 2), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((4, 3), 'west', (4, 4), 0.0), ((4, 4), 'south', (4, 3), 0.0), ((1, 2), 'north', (1, 3), 0.0), ((4, 1), 'west', (4, 0), 0.0), ((1, 1), 'east', (1, 0), 0.0), ((1, 4), 'north', (1, 4), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((4, 2), 'north', (4, 3), 0.0), ((4, 1), 'south', (4, 0), 0.0), ((4, 4), 'north', (4, 4), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((1, 1), 'west', (0, 1), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((3, 0), 'east', (4, 0), 0.0), ((1, 1), 'south', (1, 0), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((1, 0), 'east', (2, 0), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((1, 4), 'east', (1, 4), 0.0), ((3, 4), 'north', (3, 4), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((3, 0), 'west', (2, 0), 0.0), ((3, 0), 'south', (3, 0), 0.0), ((4, 1), 'west', (4, 1), 0.0), ((4, 4), 'east', (4, 4), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((1, 3), 'north', (1, 4), 0.0), ((1, 0), 'east', (2, 0), 0.0), ((1, 1), 'east', (1, 1), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((1, 4), 'east', (1, 4), 0.0), ((3, 2), 'north', (3, 3), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((3, 2), 'east', (4, 2), 0.0), ((3, 0), 'west', (2, 0), 0.0), ((3, 0), 'north', (3, 0), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((4, 1), 'west', (4, 1), 0.0), ((1, 1), 'south', (1, 0), 0.0), ((1, 2), 'west', (0, 2), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((4, 3), 'north', (4, 4), 0.0), ((1, 2), 'north', (0, 2), 0.0), ((4, 2), 'east', (4, 2), 0.0), ((4, 4), 'south', (4, 3), 0.0), ((3, 2), 'east', (3, 2), 0.0), ((1, 1), 'north', (1, 2), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((4, 1), 'south', (4, 0), 0.0), ((3, 3), 'north', (3, 3), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((1, 1), 'north', (1, 2), 0.0), ((2, 0), 'south', (3, 0), 0.0), ((4, 2), 'west', (3, 2), 0.0), ((3, 4), 'south', (3, 3), 0.0), ((1, 1), 'west', (0, 1), 0.0), ((1, 0), 'east', (2, 0), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((1, 2), 'east', (1, 3), 0.0), ((4, 1), 'west', (4, 1), 0.0), ((1, 1), 'south', (1, 0), 0.0), ((3, 0), 'west', (2, 0), 0.0), ((4, 0), 'north', (4, 1), 0.0), ((4, 3), 'north', (4, 4), 0.0), ((4, 3), 'east', (4, 4), 0.0), ((4, 0), 'east', (4, 0), 0.0), ((4, 0), 'west', (3, 0), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((3, 2), 'south', (3, 2), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((4, 4), 'south', (4, 3), 0.0), ((3, 4), 'north', (3, 4), 0.0), ((4, 3), 'east', (4, 3), 0.0), ((4, 1), 'south', (4, 0), 0.0), ((4, 3), 'west', (4, 2), 0.0), ((1, 1), 'north', (1, 2), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((3, 0), 'east', (3, 0), 0.0), ((1, 0), 'north', (1, 1), 0.0), ((3, 0), 'south', (2, 0), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((3, 0), 'west', (2, 0), 0.0), ((1, 1), 'west', (0, 1), 0.0), ((3, 3), 'west', (3, 4), 0.0), ((1, 2), 'south', (1, 1), 0.0), ((3, 0), 'east', (4, 0), 0.0), ((4, 0), 'west', (4, 1), 0.0), ((4, 3), 'south', (4, 2), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((3, 3), 'south', (3, 2), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((3, 2), 'west', (2, 2), 0.0), ((3, 4), 'east', (3, 4), 0.0), ((1, 3), 'south', (0, 3), 0.0), ((1, 3), 'east', (1, 3), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((3, 4), 'north', (4, 4), 0.0), ((1, 2), 'north', (1, 3), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((1, 2), 'east', (2, 2), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((1, 1), 'north', (1, 2), 0.0), ((4, 2), 'north', (4, 3), 0.0), ((1, 3), 'east', (1, 3), 0.0), ((1, 0), 'north', (1, 1), 0.0), ((4, 4), 'east', (4, 4), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((4, 1), 'west', (4, 1), 0.0), ((4, 3), 'south', (4, 2), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((4, 3), 'south', (4, 2), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((4, 3), 'east', (4, 3), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((1, 2), 'south', (1, 1), 0.0), ((4, 0), 'north', (4, 1), 0.0), ((4, 0), 'south', (4, 0), 0.0), ((4, 0), 'south', (4, 0), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((4, 3), 'west', (3, 3), 0.0), ((4, 2), 'south', (4, 1), 0.0), ((2, 0), 'south', (3, 0), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((2, 0), 'north', (1, 0), 0.0), ((1, 2), 'east', (2, 2), 0.0), ((1, 2), 'east', (2, 2), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((3, 3), 'north', (3, 4), 0.0), ((4, 3), 'east', (4, 3), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((3, 3), 'south', (3, 2), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((1, 1), 'north', (1, 2), 0.0), ((3, 0), 'west', (2, 0), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((1, 3), 'east', (1, 4), 0.0), ((4, 4), 'north', (4, 4), 0.0), ((4, 3), 'north', (4, 4), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((1, 4), 'north', (1, 4), 0.0), ((4, 4), 'south', (4, 3), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((1, 1), 'north', (1, 2), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((4, 1), 'east', (4, 1), 0.0), ((1, 4), 'south', (1, 3), 0.0), ((1, 1), 'south', (1, 0), 0.0), ((4, 1), 'west', (4, 2), 0.0), ((1, 3), 'east', (1, 3), 0.0), ((3, 0), 'north', (3, 0), 0.0), ((3, 0), 'north', (3, 0), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((4, 1), 'west', (4, 1), 0.0), ((3, 4), 'south', (3, 3), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((1, 0), 'south', (1, 0), 0.0), ((2, 0), 'east', (3, 0), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((4, 1), 'east', (4, 1), 0.0), ((4, 3), 'west', (3, 3), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((1, 1), 'west', (0, 1), 0.0), ((1, 1), 'west', (0, 1), 0.0), ((1, 2), 'east', (2, 2), 0.0), ((4, 3), 'west', (3, 3), 0.0), ((3, 4), 'south', (3, 3), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((1, 2), 'south', (2, 2), 0.0), ((4, 0), 'east', (4, 0), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((4, 1), 'south', (4, 0), 0.0), ((4, 4), 'north', (4, 4), 0.0), ((4, 2), 'south', (4, 1), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((1, 0), 'south', (1, 0), 0.0), ((1, 0), 'north', (1, 1), 0.0), ((3, 3), 'south', (3, 2), 0.0), ((4, 2), 'east', (4, 2), 0.0), ((3, 4), 'south', (3, 3), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((3, 4), 'west', (2, 4), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((3, 4), 'east', (4, 4), 0.0), ((4, 4), 'north', (3, 4), 0.0), ((4, 4), 'north', (4, 4), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((4, 4), 'east', (4, 4), 0.0), ((4, 0), 'west', (3, 0), 0.0), ((1, 4), 'south', (1, 3), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((2, 0), 'west', (1, 0), 0.0), ((2, 0), 'south', (2, 0), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((4, 1), 'south', (4, 0), 0.0), ((4, 3), 'east', (4, 3), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((3, 0), 'north', (3, 0), 0.0), ((3, 3), 'west', (3, 4), 0.0), ((3, 4), 'north', (2, 4), 0.0), ((3, 0), 'east', (4, 0), 0.0), ((2, 0), 'west', (2, 0), 0.0), ((4, 3), 'north', (4, 4), 0.0), ((4, 3), 'south', (4, 2), 0.0), ((4, 3), 'south', (4, 2), 0.0), ((1, 1), 'south', (1, 0), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((2, 0), 'south', (2, 0), 0.0), ((4, 4), 'south', (4, 3), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((1, 4), 'north', (1, 4), 0.0), ((1, 1), 'north', (1, 2), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((4, 3), 'south', (4, 3), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((4, 3), 'west', (3, 3), 0.0), ((4, 0), 'north', (4, 1), 0.0), ((4, 0), 'east', (4, 0), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((3, 3), 'west', (3, 3), 0.0), ((4, 0), 'north', (4, 1), 0.0), ((4, 4), 'east', (4, 4), 0.0), ((1, 4), 'south', (1, 3), 0.0), ((4, 0), 'south', (4, 0), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((4, 3), 'west', (3, 3), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((1, 1), 'east', (1, 1), 0.0), ((1, 2), 'south', (1, 1), 0.0), ((4, 2), 'south', (4, 1), 0.0), ((1, 4), 'west', (0, 4), 0.0), ((4, 4), 'east', (4, 4), 0.0), ((2, 0), 'north', (2, 0), 0.0), ((3, 0), 'west', (3, 0), 0.0), ((2, 0), 'south', (2, 0), 0.0), ((1, 0), 'south', (1, 0), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((3, 3), 'west', (3, 2), 0.0), ((1, 0), 'north', (1, 1), 0.0), ((1, 0), 'east', (2, 0), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((1, 0), 'north', (0, 0), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((1, 0), 'north', (1, 1), 0.0), ((3, 3), 'north', (3, 4), 0.0), ((3, 4), 'south', (3, 3), 0.0), ((4, 4), 'south', (4, 3), 0.0), ((1, 2), 'east', (2, 2), 0.0), ((3, 2), 'east', (3, 2), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((2, 0), 'west', (1, 0), 0.0), ((1, 4), 'south', (1, 3), 0.0), ((4, 2), 'east', (4, 1), 0.0), ((3, 4), 'north', (3, 4), 0.0), ((4, 1), 'west', (4, 1), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((1, 2), 'east', (1, 3), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((4, 2), 'east', (4, 2), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((4, 0), 'south', (4, 0), 0.0), ((1, 2), 'west', (0, 2), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((1, 0), 'east', (2, 0), 0.0), ((1, 4), 'north', (1, 4), 0.0), ((1, 0), 'north', (1, 1), 0.0), ((4, 2), 'west', (3, 2), 0.0), ((4, 2), 'south', (4, 1), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((4, 0), 'north', (4, 1), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((3, 3), 'south', (3, 2), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((4, 4), 'west', (3, 4), 0.0), ((3, 3), 'west', (3, 3), 0.0), ((4, 1), 'west', (4, 1), 0.0), ((3, 3), 'north', (3, 4), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((1, 0), 'west', (0, 0), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((1, 4), 'west', (0, 4), 0.0), ((4, 3), 'west', (3, 3), 0.0), ((3, 2), 'north', (3, 3), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((1, 4), 'south', (0, 4), 0.0), ((1, 2), 'north', (1, 3), 0.0), ((1, 3), 'north', (1, 4), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((3, 2), 'east', (4, 2), 0.0), ((4, 4), 'west', (3, 4), 0.0), ((4, 3), 'west', (3, 3), 0.0), ((1, 3), 'west', (1, 4), 0.0), ((3, 0), 'north', (3, 0), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((4, 0), 'west', (4, 0), 0.0), ((1, 3), 'north', (1, 4), 0.0), ((4, 1), 'east', (4, 1), 0.0), ((1, 0), 'south', (1, 0), 0.0), ((1, 2), 'north', (1, 3), 0.0), ((4, 3), 'east', (4, 3), 0.0), ((3, 0), 'north', (2, 0), 0.0), ((3, 0), 'south', (3, 0), 0.0), ((1, 4), 'east', (2, 4), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((1, 1), 'north', (1, 2), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((1, 0), 'west', (1, 1), 0.0), ((4, 2), 'east', (4, 2), 0.0), ((4, 4), 'south', (3, 4), 0.0), ((4, 4), 'north', (3, 4), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((3, 0), 'south', (2, 0), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((4, 4), 'south', (4, 3), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((1, 2), 'west', (0, 2), 0.0), ((1, 0), 'north', (1, 1), 0.0), ((3, 3), 'south', (3, 2), 0.0), ((3, 2), 'east', (4, 2), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((3, 3), 'west', (3, 3), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((3, 2), 'west', (2, 2), 0.0), ((1, 2), 'south', (1, 1), 0.0), ((1, 1), 'north', (1, 2), 0.0), ((3, 4), 'west', (3, 4), 0.0), ((4, 1), 'west', (4, 2), 0.0), ((3, 4), 'south', (3, 3), 0.0), ((4, 1), 'east', (4, 1), 0.0), ((1, 3), 'east', (1, 3), 0.0), ((3, 2), 'north', (3, 3), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((4, 1), 'west', (4, 2), 0.0), ((4, 4), 'west', (3, 4), 0.0), ((1, 4), 'west', (0, 4), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((4, 1), 'north', (4, 2), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((4, 0), 'west', (3, 0), 0.0), ((3, 4), 'south', (3, 3), 0.0), ((1, 2), 'south', (1, 1), 0.0), ((4, 2), 'west', (4, 1), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((4, 3), 'north', (4, 4), 0.0), ((2, 0), 'south', (2, 0), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((4, 1), 'west', (4, 1), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((4, 3), 'north', (4, 4), 0.0), ((3, 0), 'north', (3, 0), 0.0), ((1, 2), 'east', (2, 2), 0.0), ((1, 2), 'north', (1, 3), 0.0), ((4, 0), 'south', (4, 0), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((2, 0), 'east', (3, 0), 0.0), ((1, 1), 'west', (0, 1), 0.0), ((1, 3), 'west', (0, 3), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((1, 0), 'east', (2, 0), 0.0), ((1, 1), 'south', (1, 0), 0.0), ((4, 3), 'east', (4, 3), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((3, 3), 'south', (3, 2), 0.0), ((1, 2), 'west', (0, 2), 0.0), ((1, 4), 'south', (1, 3), 0.0), ((1, 2), 'north', (1, 3), 0.0), ((4, 3), 'north', (4, 4), 0.0), ((3, 2), 'north', (3, 3), 0.0), ((4, 1), 'north', (4, 2), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((2, 0), 'north', (2, 0), 0.0), ((3, 3), 'west', (3, 3), 0.0), ((1, 0), 'north', (1, 1), 0.0), ((1, 1), 'south', (1, 0), 0.0), ((1, 2), 'west', (0, 2), 0.0), ((2, 0), 'north', (2, 0), 0.0), ((1, 1), 'north', (0, 1), 0.0), ((3, 3), 'west', (3, 2), 0.0), ((3, 4), 'west', (2, 4), 0.0), ((3, 2), 'north', (3, 3), 0.0), ((3, 0), 'west', (2, 0), 0.0), ((1, 2), 'north', (1, 3), 0.0), ((3, 0), 'west', (3, 0), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((4, 1), 'east', (4, 1), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((4, 1), 'east', (4, 1), 0.0), ((1, 3), 'east', (1, 3), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((1, 1), 'east', (1, 2), 0.0), ((1, 3), 'south', (1, 2), 0.0), ((4, 1), 'south', (4, 0), 0.0), ((4, 4), 'east', (4, 4), 0.0), ((1, 3), 'south', (1, 2), 0.0), ((1, 0), 'south', (1, 0), 0.0), ((1, 3), 'north', (1, 4), 0.0), ((1, 2), 'west', (0, 2), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((3, 0), 'east', (4, 0), 0.0), ((2, 0), 'west', (1, 0), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((1, 0), 'north', (1, 1), 0.0), ((2, 0), 'west', (1, 0), 0.0), ((1, 2), 'west', (0, 2), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((4, 3), 'east', (4, 3), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((2, 0), 'east', (3, 0), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((4, 1), 'east', (4, 1), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((1, 1), 'north', (1, 2), 0.0), ((1, 4), 'west', (0, 4), 0.0), ((1, 0), 'east', (2, 0), 0.0), ((3, 3), 'west', (3, 3), 0.0), ((2, 0), 'north', (2, 0), 0.0), ((1, 4), 'north', (1, 4), 0.0), ((3, 3), 'south', (3, 2), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((4, 2), 'west', (4, 3), 0.0), ((1, 2), 'west', (0, 2), 0.0), ((4, 1), 'west', (4, 1), 0.0), ((1, 2), 'north', (2, 2), 0.0), ((4, 2), 'west', (3, 2), 0.0), ((4, 2), 'west', (3, 2), 0.0), ((1, 4), 'north', (1, 4), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((1, 2), 'north', (1, 3), 0.0), ((3, 2), 'north', (3, 3), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((1, 1), 'east', (1, 1), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((3, 2), 'east', (4, 2), 0.0), ((3, 3), 'south', (3, 2), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((4, 0), 'east', (4, 0), 0.0), ((1, 2), 'east', (2, 2), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((4, 1), 'east', (4, 2), 0.0), ((1, 2), 'east', (2, 2), 0.0), ((4, 1), 'north', (4, 1), 0.0), ((1, 3), 'east', (1, 3), 0.0), ((1, 2), 'south', (2, 2), 0.0), ((4, 3), 'east', (4, 3), 0.0), ((3, 2), 'south', (3, 2), 0.0), ((1, 0), 'south', (0, 0), 0.0), ((4, 2), 'east', (4, 2), 0.0), ((1, 1), 'west', (0, 1), 0.0), ((4, 2), 'south', (4, 1), 0.0), ((1, 4), 'north', (1, 4), 0.0), ((4, 4), 'east', (4, 4), 0.0), ((3, 3), 'north', (3, 4), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((4, 4), 'south', (4, 3), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((1, 0), 'south', (1, 0), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((3, 0), 'west', (2, 0), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((1, 1), 'south', (1, 0), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((1, 2), 'east', (2, 2), 0.0), ((1, 3), 'west', (0, 3), 0.0), ((3, 4), 'south', (3, 3), 0.0), ((1, 2), 'south', (1, 1), 0.0), ((4, 1), 'west', (4, 2), 0.0), ((4, 2), 'south', (4, 1), 0.0), ((3, 4), 'east', (4, 4), 0.0), ((4, 2), 'south', (4, 1), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((1, 2), 'west', (0, 2), 0.0), ((4, 4), 'south', (4, 3), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((4, 0), 'west', (3, 0), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((4, 1), 'east', (4, 1), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((4, 4), 'east', (4, 4), 0.0), ((3, 3), 'north', (4, 3), 0.0), ((3, 0), 'north', (3, 0), 0.0), ((4, 1), 'east', (4, 1), 0.0), ((1, 3), 'north', (1, 4), 0.0), ((4, 2), 'south', (4, 2), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((4, 1), 'east', (4, 1), 0.0), ((1, 1), 'north', (1, 2), 0.0), ((1, 2), 'west', (0, 2), 0.0), ((3, 4), 'east', (4, 4), 0.0), ((4, 0), 'west', (3, 0), 0.0), ((4, 0), 'north', (3, 0), 0.0), ((4, 4), 'west', (3, 4), 0.0), ((3, 4), 'east', (4, 4), 0.0), ((4, 0), 'north', (4, 1), 0.0), ((1, 4), 'west', (1, 3), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((3, 2), 'east', (4, 2), 0.0), ((3, 4), 'south', (3, 3), 0.0), ((4, 0), 'west', (4, 1), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((3, 2), 'west', (2, 2), 0.0), ((4, 1), 'south', (4, 0), 0.0), ((4, 3), 'east', (4, 3), 0.0), ((3, 3), 'south', (3, 2), 0.0), ((4, 4), 'south', (3, 4), 0.0), ((4, 0), 'west', (3, 0), 0.0), ((4, 2), 'north', (4, 3), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((4, 1), 'east', (4, 1), 0.0), ((3, 2), 'west', (2, 2), 0.0), ((1, 0), 'west', (0, 0), 0.0), ((1, 3), 'south', (1, 2), 0.0), ((1, 0), 'north', (1, 1), 0.0), ((1, 0), 'east', (2, 0), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((4, 1), 'south', (4, 1), 0.0), ((3, 3), 'east', (4, 3), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((4, 4), 'north', (4, 4), 0.0), ((4, 0), 'west', (3, 0), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((4, 2), 'west', (3, 2), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((1, 3), 'east', (1, 3), 0.0), ((4, 3), 'south', (4, 2), 0.0), ((3, 3), 'west', (3, 2), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((1, 2), 'west', (0, 2), 0.0), ((4, 3), 'east', (4, 3), 0.0), ((4, 0), 'west', (3, 0), 0.0), ((4, 3), 'east', (4, 3), 0.0), ((4, 0), 'west', (3, 0), 0.0), ((2, 0), 'east', (3, 0), 0.0), ((4, 0), 'east', (4, 0), 0.0), ((1, 1), 'east', (1, 2), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((4, 2), 'east', (4, 3), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((2, 0), 'east', (3, 0), 0.0), ((4, 1), 'west', (4, 1), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((3, 3), 'west', (3, 3), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((3, 0), 'west', (2, 0), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((3, 3), 'south', (3, 2), 0.0), ((1, 4), 'west', (0, 4), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((4, 1), 'west', (4, 1), 0.0), ((1, 2), 'south', (1, 1), 0.0), ((4, 4), 'west', (3, 4), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((1, 2), 'north', (1, 3), 0.0), ((3, 3), 'east', (4, 3), 0.0), ((4, 4), 'north', (4, 4), 0.0), ((3, 4), 'north', (4, 4), 0.0), ((1, 4), 'west', (0, 4), 0.0), ((3, 3), 'north', (3, 4), 0.0), ((1, 2), 'north', (1, 3), 0.0), ((3, 0), 'west', (3, 0), 0.0), ((3, 4), 'north', (3, 4), 0.0), ((3, 0), 'north', (3, 0), 0.0), ((4, 1), 'north', (4, 2), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((3, 4), 'west', (2, 4), 0.0), ((4, 4), 'south', (3, 4), 0.0), ((1, 0), 'west', (0, 0), 0.0), ((4, 0), 'west', (3, 0), 0.0), ((1, 2), 'west', (0, 2), 0.0), ((4, 3), 'west', (3, 3), 0.0), ((3, 0), 'north', (3, 0), 0.0), ((1, 4), 'east', (2, 4), 0.0), ((1, 1), 'west', (0, 1), 0.0), ((1, 0), 'south', (1, 0), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((2, 0), 'west', (1, 0), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((4, 3), 'south', (3, 3), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((4, 2), 'west', (3, 2), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((4, 3), 'south', (4, 2), 0.0), ((1, 0), 'west', (0, 0), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((1, 1), 'north', (1, 2), 0.0), ((4, 3), 'east', (4, 3), 0.0), ((4, 4), 'east', (4, 4), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((4, 4), 'north', (4, 4), 0.0), ((4, 0), 'west', (3, 0), 0.0), ((4, 2), 'north', (4, 3), 0.0), ((2, 0), 'east', (3, 0), 0.0), ((3, 2), 'north', (4, 2), 0.0), ((1, 4), 'west', (0, 4), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((2, 0), 'west', (1, 0), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((4, 2), 'west', (3, 2), 0.0), ((1, 0), 'east', (2, 0), 0.0), ((4, 0), 'south', (4, 0), 0.0), ((4, 4), 'east', (4, 4), 0.0), ((4, 0), 'north', (4, 1), 0.0), ((4, 3), 'north', (4, 4), 0.0), ((4, 0), 'west', (3, 0), 0.0), ((4, 1), 'east', (4, 1), 0.0), ((4, 1), 'east', (4, 1), 0.0), ((1, 3), 'east', (1, 3), 0.0), ((4, 2), 'west', (3, 2), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((2, 0), 'south', (2, 0), 0.0), ((3, 3), 'south', (3, 2), 0.0), ((1, 1), 'south', (1, 0), 0.0), ((4, 3), 'north', (4, 4), 0.0), ((4, 2), 'south', (3, 2), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((1, 0), 'east', (2, 0), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((3, 3), 'north', (3, 4), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((2, 0), 'east', (2, 0), 0.0), ((3, 0), 'west', (2, 0), 0.0), ((4, 1), 'north', (4, 2), 0.0), ((4, 3), 'east', (4, 3), 0.0), ((2, 0), 'north', (2, 0), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((4, 1), 'west', (4, 1), 0.0), ((4, 1), 'south', (4, 0), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((2, 0), 'east', (3, 0), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((4, 0), 'east', (4, 0), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((4, 4), 'north', (4, 4), 0.0), ((3, 3), 'north', (3, 4), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((4, 3), 'west', (3, 3), 0.0), ((3, 3), 'west', (3, 3), 0.0), ((1, 3), 'east', (1, 3), 0.0), ((3, 4), 'north', (3, 4), 0.0), ((1, 1), 'north', (1, 2), 0.0), ((1, 3), 'east', (1, 3), 0.0), ((4, 4), 'west', (3, 4), 0.0), ((1, 0), 'west', (0, 0), 0.0), ((4, 0), 'west', (3, 0), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((1, 1), 'south', (1, 1), 0.0), ((3, 0), 'west', (3, 0), 0.0), ((1, 2), 'north', (1, 3), 0.0), ((1, 4), 'west', (1, 4), 0.0), ((4, 3), 'east', (4, 3), 0.0), ((4, 3), 'south', (4, 2), 0.0), ((1, 4), 'south', (2, 4), 0.0), ((3, 3), 'east', (4, 3), 0.0), ((1, 2), 'east', (2, 2), 0.0), ((1, 0), 'north', (2, 0), 0.0), ((1, 0), 'north', (1, 1), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((4, 4), 'north', (4, 4), 0.0), ((4, 3), 'west', (3, 3), 0.0), ((1, 2), 'north', (1, 3), 0.0), ((4, 3), 'north', (4, 4), 0.0), ((1, 0), 'south', (1, 0), 0.0), ((4, 0), 'north', (4, 1), 0.0), ((4, 4), 'south', (4, 3), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((4, 4), 'south', (4, 3), 0.0), ((3, 4), 'north', (3, 4), 0.0), ((3, 4), 'north', (4, 4), 0.0), ((4, 1), 'north', (4, 2), 0.0), ((2, 0), 'north', (2, 0), 0.0), ((1, 3), 'west', (0, 3), 0.0), ((4, 4), 'west', (4, 3), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((1, 0), 'west', (0, 0), 0.0), ((3, 2), 'west', (2, 2), 0.0), ((3, 2), 'west', (3, 2), 0.0), ((2, 0), 'east', (3, 0), 0.0), ((1, 0), 'east', (2, 0), 0.0), ((4, 4), 'west', (3, 4), 0.0), ((3, 3), 'east', (4, 3), 0.0), ((1, 0), 'north', (2, 0), 0.0), ((3, 3), 'south', (3, 2), 0.0), ((2, 0), 'east', (3, 0), 0.0), ((3, 2), 'east', (4, 2), 0.0), ((4, 4), 'south', (4, 3), 0.0), ((3, 2), 'west', (2, 2), 0.0), ((4, 1), 'east', (4, 1), 0.0), ((4, 0), 'east', (4, 0), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((1, 4), 'north', (1, 4), 0.0), ((4, 0), 'north', (4, 1), 0.0), ((1, 3), 'south', (0, 3), 0.0), ((3, 2), 'north', (3, 3), 0.0), ((2, 0), 'north', (2, 0), 0.0), ((1, 2), 'west', (0, 2), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((2, 0), 'west', (2, 0), 0.0), ((1, 3), 'south', (1, 2), 0.0), ((4, 4), 'south', (4, 3), 0.0), ((3, 3), 'south', (3, 3), 0.0), ((4, 2), 'east', (4, 2), 0.0), ((1, 1), 'east', (1, 2), 0.0), ((1, 3), 'east', (1, 3), 0.0), ((2, 0), 'west', (1, 0), 0.0), ((4, 1), 'north', (4, 2), 0.0), ((4, 1), 'west', (4, 0), 0.0), ((1, 0), 'south', (1, 0), 0.0), ((4, 2), 'west', (4, 1), 0.0), ((3, 3), 'west', (3, 3), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((1, 0), 'south', (1, 0), 0.0), ((2, 0), 'east', (3, 0), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((2, 0), 'west', (1, 0), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((4, 3), 'west', (4, 2), 0.0), ((3, 4), 'south', (3, 3), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((3, 2), 'west', (2, 2), 0.0), ((1, 2), 'west', (0, 2), 0.0), ((3, 3), 'north', (3, 4), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((4, 1), 'south', (4, 0), 0.0), ((3, 3), 'south', (3, 2), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((1, 3), 'east', (1, 3), 0.0), ((1, 1), 'north', (1, 1), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((1, 1), 'south', (1, 0), 0.0), ((2, 0), 'west', (1, 0), 0.0), ((1, 0), 'south', (2, 0), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((3, 4), 'west', (2, 4), 0.0), ((1, 3), 'east', (1, 3), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((3, 0), 'west', (2, 0), 0.0), ((3, 3), 'north', (3, 4), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((3, 2), 'west', (2, 2), 0.0), ((1, 0), 'west', (0, 0), 0.0), ((4, 3), 'north', (4, 4), 0.0), ((4, 4), 'south', (4, 3), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((3, 4), 'west', (2, 4), 0.0), ((3, 4), 'west', (2, 4), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((4, 3), 'west', (3, 3), 0.0), ((1, 1), 'west', (0, 1), 0.0), ((4, 1), 'west', (4, 1), 0.0), ((1, 1), 'west', (0, 1), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((4, 2), 'south', (4, 1), 0.0), ((4, 3), 'west', (4, 4), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((1, 0), 'north', (1, 1), 0.0), ((1, 3), 'east', (1, 3), 0.0), ((3, 0), 'north', (3, 0), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((1, 4), 'east', (2, 4), 0.0), ((4, 2), 'south', (4, 1), 0.0), ((1, 4), 'east', (2, 4), 0.0), ((1, 0), 'east', (1, 1), 0.0), ((3, 2), 'east', (4, 2), 0.0), ((4, 0), 'south', (4, 0), 0.0), ((1, 1), 'south', (1, 1), 0.0), ((3, 4), 'north', (3, 4), 0.0), ((1, 2), 'north', (1, 3), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((4, 1), 'north', (4, 1), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((4, 2), 'west', (3, 2), 0.0), ((3, 3), 'north', (3, 4), 0.0), ((4, 1), 'north', (4, 2), 0.0), ((1, 4), 'east', (1, 4), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((4, 2), 'north', (4, 3), 0.0), ((3, 2), 'west', (2, 2), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((4, 3), 'east', (4, 3), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((4, 2), 'east', (4, 2), 0.0), ((2, 0), 'east', (3, 0), 0.0), ((4, 1), 'west', (4, 1), 0.0), ((4, 2), 'north', (4, 3), 0.0), ((4, 0), 'west', (4, 0), 0.0), ((3, 3), 'north', (3, 4), 0.0), ((1, 2), 'south', (1, 1), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((2, 0), 'north', (2, 0), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((1, 4), 'east', (1, 3), 0.0), ((1, 2), 'west', (0, 2), 0.0), ((3, 2), 'west', (2, 2), 0.0), ((1, 3), 'west', (1, 2), 0.0), ((3, 4), 'north', (3, 4), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((4, 0), 'east', (4, 0), 0.0), ((1, 1), 'north', (1, 2), 0.0), ((4, 2), 'west', (3, 2), 0.0), ((1, 2), 'west', (0, 2), 0.0), ((1, 1), 'west', (0, 1), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((2, 0), 'south', (2, 0), 0.0), ((1, 3), 'south', (1, 2), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((3, 2), 'south', (3, 2), 0.0), ((3, 2), 'north', (3, 3), 0.0), ((1, 2), 'south', (1, 1), 0.0), ((1, 0), 'east', (2, 0), 0.0), ((1, 1), 'north', (1, 2), 0.0), ((4, 3), 'south', (4, 2), 0.0), ((4, 4), 'south', (3, 4), 0.0), ((2, 0), 'west', (1, 0), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((1, 0), 'south', (1, 0), 0.0), ((3, 2), 'west', (2, 2), 0.0), ((2, 0), 'north', (3, 0), 0.0), ((3, 3), 'north', (3, 4), 0.0), ((2, 0), 'west', (1, 0), 0.0), ((4, 1), 'south', (4, 0), 0.0), ((2, 0), 'south', (2, 0), 0.0), ((3, 3), 'west', (3, 3), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((4, 3), 'south', (4, 2), 0.0), ((2, 0), 'west', (2, 0), 0.0), ((4, 0), 'south', (4, 0), 0.0), ((3, 0), 'north', (4, 0), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((1, 1), 'north', (1, 2), 0.0), ((1, 1), 'south', (1, 1), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((4, 4), 'north', (4, 4), 0.0), ((1, 3), 'south', (1, 2), 0.0), ((3, 3), 'west', (3, 3), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((1, 4), 'west', (0, 4), 0.0), ((1, 3), 'west', (1, 4), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((1, 3), 'north', (1, 3), 0.0), ((3, 0), 'north', (3, 0), 0.0), ((3, 0), 'south', (3, 0), 0.0), ((1, 4), 'west', (0, 4), 0.0), ((4, 2), 'south', (4, 1), 0.0), ((1, 4), 'east', (2, 4), 0.0), ((4, 2), 'north', (4, 3), 0.0), ((3, 2), 'south', (3, 2), 0.0), ((1, 0), 'north', (1, 1), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((2, 0), 'east', (3, 0), 0.0), ((4, 3), 'south', (4, 2), 0.0), ((4, 4), 'west', (3, 4), 0.0), ((4, 0), 'south', (4, 0), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((3, 2), 'north', (3, 3), 0.0), ((1, 3), 'north', (1, 4), 0.0), ((4, 3), 'west', (3, 3), 0.0), ((4, 2), 'south', (4, 1), 0.0), ((1, 2), 'south', (1, 1), 0.0), ((3, 3), 'south', (3, 2), 0.0), ((4, 2), 'east', (4, 2), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((1, 0), 'west', (0, 0), 0.0), ((3, 4), 'east', (4, 4), 0.0), ((3, 4), 'north', (4, 4), 0.0), ((3, 3), 'north', (3, 3), 0.0), ((1, 2), 'west', (0, 2), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((1, 0), 'south', (1, 0), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((4, 2), 'north', (4, 2), 0.0), ((3, 0), 'west', (3, 0), 0.0), ((2, 0), 'north', (3, 0), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((2, 0), 'east', (3, 0), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((1, 0), 'east', (1, 1), 0.0), ((4, 1), 'west', (4, 1), 0.0), ((1, 1), 'east', (1, 1), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((4, 0), 'north', (4, 1), 0.0), ((1, 3), 'east', (1, 3), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((4, 2), 'north', (4, 3), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((1, 3), 'north', (0, 3), 0.0), ((4, 4), 'north', (3, 4), 0.0), ((3, 3), 'west', (3, 3), 0.0), ((1, 3), 'west', (0, 3), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((3, 0), 'south', (3, 0), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((3, 4), 'north', (3, 4), 0.0), ((4, 1), 'west', (4, 1), 0.0), ((3, 3), 'east', (4, 3), 0.0), ((3, 0), 'east', (4, 0), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((3, 2), 'north', (3, 3), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((3, 3), 'west', (3, 3), 0.0), ((4, 1), 'north', (4, 1), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((4, 0), 'east', (4, 0), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((1, 0), 'west', (1, 1), 0.0), ((4, 2), 'west', (3, 2), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((2, 0), 'north', (2, 0), 0.0), ((1, 2), 'south', (1, 1), 0.0), ((4, 3), 'west', (3, 3), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((1, 1), 'south', (1, 0), 0.0), ((1, 0), 'east', (1, 1), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((3, 0), 'west', (2, 0), 0.0), ((4, 0), 'north', (4, 1), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((1, 4), 'north', (1, 4), 0.0), ((4, 4), 'north', (4, 4), 0.0), ((4, 0), 'north', (4, 1), 0.0), ((1, 4), 'south', (1, 3), 0.0), ((1, 0), 'north', (1, 1), 0.0), ((1, 3), 'south', (1, 2), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((3, 3), 'east', (4, 3), 0.0), ((3, 4), 'south', (3, 3), 0.0), ((1, 3), 'east', (1, 3), 0.0), ((1, 2), 'north', (1, 3), 0.0), ((4, 2), 'south', (4, 2), 0.0), ((4, 2), 'north', (3, 2), 0.0), ((2, 0), 'north', (2, 0), 0.0), ((3, 3), 'east', (4, 3), 0.0), ((1, 4), 'north', (1, 4), 0.0), ((3, 0), 'east', (3, 0), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((3, 3), 'west', (3, 3), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((1, 1), 'south', (1, 0), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((3, 3), 'west', (3, 3), 0.0), ((1, 2), 'east', (2, 2), 0.0), ((3, 2), 'east', (4, 2), 0.0), ((4, 0), 'south', (3, 0), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((4, 0), 'south', (4, 0), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((1, 2), 'north', (1, 3), 0.0), ((1, 4), 'west', (0, 4), 0.0), ((1, 4), 'south', (1, 3), 0.0), ((1, 0), 'west', (0, 0), 0.0), ((4, 0), 'east', (4, 0), 0.0), ((2, 0), 'east', (3, 0), 0.0), ((1, 2), 'east', (2, 2), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((1, 2), 'west', (0, 2), 0.0), ((3, 4), 'east', (3, 4), 0.0), ((3, 2), 'west', (2, 2), 0.0), ((3, 0), 'west', (2, 0), 0.0), ((1, 1), 'south', (1, 1), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((4, 3), 'west', (3, 3), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((4, 2), 'east', (4, 2), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((4, 1), 'north', (4, 2), 0.0), ((1, 2), 'north', (1, 3), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((1, 3), 'west', (0, 3), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((1, 2), 'north', (1, 3), 0.0), ((4, 2), 'north', (4, 3), 0.0), ((1, 3), 'west', (0, 3), 0.0), ((1, 4), 'west', (0, 4), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((2, 0), 'south', (2, 0), 0.0), ((1, 1), 'east', (1, 1), 0.0), ((4, 0), 'south', (4, 0), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((1, 2), 'south', (1, 1), 0.0), ((4, 2), 'north', (4, 3), 0.0), ((2, 0), 'north', (2, 0), 0.0), ((3, 2), 'west', (3, 3), 0.0), ((3, 3), 'east', (4, 3), 0.0), ((3, 0), 'west', (2, 0), 0.0), ((4, 0), 'east', (4, 0), 0.0), ((1, 0), 'west', (0, 0), 0.0), ((3, 0), 'north', (3, 0), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((4, 4), 'south', (4, 3), 0.0), ((1, 4), 'south', (1, 3), 0.0), ((4, 2), 'south', (4, 1), 0.0), ((1, 4), 'east', (1, 3), 0.0), ((4, 4), 'south', (4, 3), 0.0), ((1, 1), 'west', (0, 1), 0.0), ((3, 3), 'south', (3, 2), 0.0), ((1, 3), 'west', (0, 3), 0.0), ((1, 3), 'south', (1, 2), 0.0), ((4, 3), 'north', (4, 4), 0.0), ((1, 1), 'south', (1, 0), 0.0), ((3, 0), 'north', (2, 0), 0.0), ((4, 3), 'east', (4, 3), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((4, 0), 'west', (3, 0), 0.0), ((1, 1), 'north', (1, 2), 0.0), ((4, 4), 'west', (3, 4), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((1, 4), 'north', (1, 4), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((1, 2), 'north', (1, 3), 0.0), ((4, 2), 'west', (4, 1), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((1, 2), 'east', (2, 2), 0.0), ((1, 0), 'east', (2, 0), 0.0), ((4, 3), 'north', (4, 4), 0.0), ((4, 4), 'south', (4, 3), 0.0), ((4, 0), 'west', (4, 1), 0.0), ((1, 1), 'east', (1, 1), 0.0), ((4, 2), 'east', (4, 2), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((1, 4), 'north', (1, 4), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((4, 0), 'west', (3, 0), 0.0), ((3, 2), 'north', (3, 3), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((4, 3), 'east', (4, 3), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((1, 3), 'west', (0, 3), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((3, 4), 'east', (4, 4), 0.0), ((4, 0), 'east', (4, 0), 0.0), ((1, 1), 'south', (1, 0), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((1, 2), 'north', (0, 2), 0.0), ((4, 0), 'north', (4, 1), 0.0), ((4, 2), 'south', (4, 1), 0.0), ((2, 0), 'west', (1, 0), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((1, 4), 'west', (0, 4), 0.0), ((4, 4), 'north', (4, 4), 0.0), ((4, 1), 'west', (4, 2), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((1, 2), 'west', (0, 2), 0.0), ((3, 0), 'north', (3, 0), 0.0), ((3, 4), 'west', (3, 3), 0.0), ((4, 0), 'south', (3, 0), 0.0), ((1, 0), 'north', (1, 1), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((4, 2), 'east', (4, 2), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((1, 3), 'west', (0, 3), 0.0), ((3, 0), 'south', (4, 0), 0.0), ((4, 2), 'south', (4, 1), 0.0), ((1, 0), 'east', (2, 0), 0.0), ((4, 3), 'west', (3, 3), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((4, 0), 'north', (4, 1), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((3, 0), 'west', (3, 0), 0.0), ((1, 2), 'east', (2, 2), 0.0), ((3, 0), 'south', (3, 0), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((1, 4), 'west', (0, 4), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((1, 2), 'west', (0, 2), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((3, 4), 'south', (3, 3), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((3, 3), 'north', (3, 4), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((1, 4), 'north', (1, 4), 0.0), ((3, 2), 'north', (3, 3), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((3, 0), 'east', (3, 0), 0.0), ((3, 4), 'east', (4, 4), 0.0), ((1, 0), 'east', (2, 0), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((3, 4), 'north', (3, 4), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((4, 4), 'west', (3, 4), 0.0), ((4, 3), 'north', (3, 3), 0.0), ((4, 3), 'south', (4, 2), 0.0), ((1, 0), 'north', (1, 1), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((1, 0), 'west', (0, 0), 0.0), ((3, 0), 'south', (3, 0), 0.0), ((3, 2), 'south', (3, 2), 0.0), ((1, 4), 'north', (1, 4), 0.0), ((4, 3), 'south', (4, 2), 0.0), ((1, 1), 'south', (1, 0), 0.0), ((2, 0), 'south', (3, 0), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((1, 1), 'south', (1, 0), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((1, 3), 'west', (0, 3), 0.0), ((3, 0), 'south', (3, 0), 0.0), ((4, 2), 'south', (4, 1), 0.0), ((4, 2), 'west', (3, 2), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((4, 3), 'north', (4, 4), 0.0), ((3, 4), 'east', (4, 4), 0.0), ((1, 0), 'east', (2, 0), 0.0), ((4, 1), 'east', (4, 1), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((3, 4), 'east', (4, 4), 0.0), ((3, 2), 'south', (3, 2), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((1, 0), 'south', (1, 0), 0.0), ((1, 0), 'west', (0, 0), 0.0), ((4, 0), 'east', (4, 0), 0.0), ((1, 1), 'west', (0, 1), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((1, 4), 'south', (1, 3), 0.0), ((1, 4), 'west', (0, 4), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((1, 1), 'west', (0, 1), 0.0), ((1, 3), 'east', (1, 3), 0.0), ((4, 0), 'south', (4, 0), 0.0), ((1, 1), 'south', (1, 0), 0.0), ((3, 0), 'east', (3, 0), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((3, 0), 'west', (3, 0), 0.0), ((4, 0), 'east', (4, 0), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((3, 4), 'north', (2, 4), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((3, 0), 'east', (3, 0), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((3, 3), 'south', (3, 2), 0.0), ((4, 2), 'east', (4, 2), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((4, 2), 'east', (4, 2), 0.0), ((3, 0), 'south', (4, 0), 0.0), ((4, 4), 'north', (3, 4), 0.0), ((3, 0), 'west', (2, 0), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((4, 3), 'south', (4, 3), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((4, 1), 'north', (4, 2), 0.0), ((4, 4), 'east', (4, 4), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((1, 4), 'east', (2, 4), 0.0), ((4, 0), 'west', (4, 1), 0.0), ((1, 2), 'south', (1, 1), 0.0), ((1, 4), 'north', (1, 4), 0.0), ((1, 2), 'east', (2, 2), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((3, 0), 'west', (2, 0), 0.0), ((1, 1), 'east', (1, 1), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((4, 0), 'north', (4, 1), 0.0), ((4, 2), 'north', (3, 2), 0.0), ((3, 3), 'west', (3, 3), 0.0), ((1, 4), 'west', (0, 4), 0.0), ((3, 4), 'north', (3, 4), 0.0), ((4, 4), 'east', (4, 4), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((1, 0), 'east', (2, 0), 0.0), ((4, 3), 'north', (4, 4), 0.0), ((3, 0), 'west', (2, 0), 0.0), ((4, 1), 'north', (4, 1), 0.0), ((4, 2), 'east', (4, 2), 0.0), ((1, 4), 'west', (0, 4), 0.0), ((1, 0), 'south', (2, 0), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((3, 3), 'north', (3, 4), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((2, 0), 'north', (1, 0), 0.0), ((4, 0), 'north', (4, 1), 0.0), ((4, 3), 'west', (3, 3), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((4, 3), 'south', (4, 2), 0.0), ((3, 4), 'north', (4, 4), 0.0), ((1, 4), 'east', (1, 4), 0.0), ((1, 1), 'west', (0, 1), 0.0), ((1, 3), 'south', (1, 2), 0.0), ((1, 0), 'west', (0, 0), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((3, 0), 'west', (2, 0), 0.0), ((1, 1), 'west', (0, 1), 0.0), ((3, 2), 'east', (4, 2), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((1, 3), 'south', (1, 2), 0.0), ((4, 1), 'south', (4, 0), 0.0), ((1, 4), 'north', (1, 4), 0.0), ((1, 2), 'north', (1, 3), 0.0), ((1, 0), 'east', (2, 0), 0.0), ((3, 4), 'west', (2, 4), 0.0), ((1, 4), 'south', (0, 4), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((4, 1), 'north', (4, 1), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((4, 2), 'west', (3, 2), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((4, 3), 'south', (3, 3), 0.0), ((1, 4), 'south', (1, 3), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((1, 4), 'north', (1, 4), 0.0), ((1, 4), 'east', (2, 4), 0.0), ((1, 0), 'west', (0, 0), 0.0), ((4, 1), 'north', (4, 2), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((1, 4), 'east', (2, 4), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((4, 0), 'north', (4, 1), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((1, 3), 'north', (1, 4), 0.0), ((3, 0), 'west', (2, 0), 0.0), ((3, 2), 'north', (2, 2), 0.0), ((1, 3), 'south', (1, 3), 0.0), ((1, 1), 'north', (1, 2), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((3, 2), 'north', (3, 3), 0.0), ((1, 3), 'north', (1, 4), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((2, 0), 'south', (2, 0), 0.0), ((1, 2), 'east', (1, 3), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((3, 3), 'west', (3, 4), 0.0), ((3, 0), 'west', (2, 0), 0.0), ((3, 2), 'north', (3, 3), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((1, 1), 'west', (0, 1), 0.0), ((4, 4), 'west', (3, 4), 0.0), ((1, 0), 'east', (2, 0), 0.0), ((4, 4), 'north', (4, 4), 0.0), ((1, 4), 'west', (1, 3), 0.0), ((4, 0), 'north', (4, 1), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((1, 2), 'east', (2, 2), 0.0), ((3, 0), 'south', (3, 0), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((3, 3), 'east', (4, 3), 0.0), ((3, 0), 'north', (3, 0), 0.0), ((1, 0), 'east', (2, 0), 0.0), ((4, 1), 'south', (4, 0), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((4, 4), 'south', (4, 3), 0.0), ((4, 4), 'west', (3, 4), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((1, 2), 'north', (2, 2), 0.0), ((1, 0), 'east', (2, 0), 0.0), ((1, 2), 'north', (1, 3), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((4, 3), 'north', (4, 4), 0.0), ((4, 2), 'east', (4, 1), 0.0), ((4, 0), 'west', (3, 0), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((2, 0), 'south', (2, 0), 0.0), ((1, 0), 'west', (1, 1), 0.0), ((2, 0), 'south', (2, 0), 0.0), ((1, 2), 'west', (0, 2), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((1, 4), 'south', (1, 3), 0.0), ((1, 4), 'east', (2, 4), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((3, 4), 'north', (3, 4), 0.0), ((4, 2), 'west', (3, 2), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((1, 0), 'east', (2, 0), 0.0), ((1, 2), 'east', (2, 2), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((1, 2), 'east', (1, 1), 0.0), ((1, 2), 'west', (0, 2), 0.0), ((1, 3), 'west', (0, 3), 0.0), ((1, 4), 'south', (1, 3), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((3, 3), 'south', (3, 2), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((1, 2), 'east', (2, 2), 0.0), ((4, 4), 'south', (4, 3), 0.0), ((3, 4), 'south', (3, 3), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((1, 4), 'east', (2, 4), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((3, 2), 'east', (4, 2), 0.0), ((4, 1), 'south', (4, 0), 0.0), ((3, 0), 'south', (3, 0), 0.0), ((1, 4), 'north', (1, 4), 0.0), ((4, 0), 'east', (4, 0), 0.0), ((2, 0), 'north', (2, 0), 0.0), ((4, 0), 'north', (4, 1), 0.0), ((1, 1), 'west', (1, 0), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((4, 4), 'south', (4, 3), 0.0), ((3, 0), 'west', (2, 0), 0.0), ((1, 1), 'west', (0, 1), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((1, 4), 'west', (0, 4), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((3, 2), 'north', (2, 2), 0.0), ((3, 2), 'east', (4, 2), 0.0), ((4, 4), 'west', (3, 4), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((4, 3), 'north', (4, 4), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((3, 3), 'south', (3, 2), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((3, 3), 'west', (3, 3), 0.0), ((3, 2), 'west', (2, 2), 0.0), ((1, 0), 'east', (2, 0), 0.0), ((3, 4), 'west', (2, 4), 0.0), ((4, 1), 'west', (4, 1), 0.0), ((2, 0), 'north', (2, 0), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((1, 2), 'north', (0, 2), 0.0), ((3, 4), 'east', (4, 4), 0.0), ((1, 0), 'east', (2, 0), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((4, 3), 'east', (4, 3), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((4, 1), 'north', (4, 2), 0.0), ((2, 0), 'north', (2, 0), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((4, 3), 'west', (3, 3), 0.0), ((3, 3), 'north', (3, 4), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((4, 2), 'south', (3, 2), 0.0), ((3, 4), 'west', (2, 4), 0.0), ((2, 0), 'south', (2, 0), 0.0), ((1, 4), 'east', (2, 4), 0.0), ((1, 3), 'west', (1, 2), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((1, 1), 'east', (1, 1), 0.0), ((4, 1), 'south', (4, 1), 0.0), ((4, 3), 'west', (4, 2), 0.0), ((4, 2), 'south', (4, 2), 0.0), ((1, 3), 'west', (0, 3), 0.0), ((3, 0), 'east', (4, 0), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((4, 1), 'east', (4, 1), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((4, 4), 'east', (4, 4), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((1, 4), 'west', (1, 4), 0.0), ((1, 2), 'south', (1, 1), 0.0), ((3, 2), 'north', (3, 3), 0.0), ((4, 3), 'north', (4, 4), 0.0), ((3, 0), 'south', (3, 0), 0.0), ((4, 4), 'west', (3, 4), 0.0), ((4, 0), 'north', (4, 1), 0.0), ((1, 1), 'east', (1, 2), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((3, 2), 'west', (2, 2), 0.0), ((3, 2), 'south', (2, 2), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((3, 3), 'west', (3, 3), 0.0), ((4, 3), 'west', (3, 3), 0.0), ((1, 0), 'east', (1, 1), 0.0), ((1, 3), 'east', (1, 3), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((1, 2), 'south', (1, 1), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((1, 1), 'south', (1, 0), 0.0), ((1, 4), 'north', (1, 4), 0.0), ((4, 3), 'west', (3, 3), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((1, 4), 'east', (1, 4), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((1, 2), 'south', (1, 1), 0.0), ((3, 2), 'north', (4, 2), 0.0), ((1, 4), 'west', (0, 4), 0.0), ((3, 2), 'south', (4, 2), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((4, 3), 'east', (4, 3), 0.0), ((3, 4), 'south', (4, 4), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((3, 2), 'west', (2, 2), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((1, 4), 'west', (1, 3), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((4, 2), 'north', (4, 3), 0.0), ((3, 3), 'east', (4, 3), 0.0), ((4, 3), 'east', (4, 2), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((2, 0), 'west', (2, 0), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((3, 0), 'west', (2, 0), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((1, 1), 'east', (1, 2), 0.0), ((3, 2), 'east', (4, 2), 0.0), ((1, 2), 'north', (1, 3), 0.0), ((3, 2), 'north', (3, 3), 0.0), ((4, 0), 'north', (4, 1), 0.0), ((3, 0), 'north', (4, 0), 0.0), ((1, 2), 'south', (1, 1), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((3, 3), 'east', (3, 2), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((1, 4), 'south', (0, 4), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((3, 2), 'east', (4, 2), 0.0), ((4, 2), 'east', (4, 1), 0.0), ((1, 3), 'east', (1, 3), 0.0), ((4, 0), 'east', (4, 1), 0.0), ((4, 4), 'east', (4, 4), 0.0), ((3, 3), 'west', (3, 3), 0.0), ((1, 3), 'west', (0, 3), 0.0), ((1, 3), 'east', (1, 3), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((4, 3), 'south', (4, 2), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((1, 4), 'east', (1, 3), 0.0), ((4, 1), 'north', (4, 2), 0.0), ((4, 1), 'east', (4, 2), 0.0), ((3, 2), 'east', (3, 2), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((4, 4), 'south', (4, 3), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((1, 4), 'west', (1, 3), 0.0), ((4, 4), 'south', (4, 3), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((3, 4), 'west', (2, 4), 0.0), ((4, 2), 'south', (4, 1), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((3, 4), 'west', (3, 4), 0.0), ((1, 2), 'east', (2, 2), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((2, 0), 'west', (1, 0), 0.0), ((1, 0), 'north', (1, 1), 0.0), ((3, 3), 'north', (3, 4), 0.0), ((4, 0), 'west', (3, 0), 0.0), ((3, 0), 'east', (4, 0), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((3, 2), 'south', (3, 2), 0.0), ((3, 4), 'north', (3, 4), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((3, 3), 'west', (3, 3), 0.0), ((4, 1), 'south', (4, 0), 0.0), ((3, 0), 'west', (2, 0), 0.0), ((1, 1), 'north', (1, 1), 0.0), ((1, 4), 'south', (1, 3), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((1, 4), 'west', (1, 3), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((1, 0), 'east', (2, 0), 0.0), ((4, 2), 'east', (4, 2), 0.0), ((1, 4), 'east', (2, 4), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((3, 4), 'east', (4, 4), 0.0), ((4, 2), 'east', (4, 2), 0.0), ((4, 0), 'west', (3, 0), 0.0), ((3, 0), 'east', (4, 0), 0.0), ((4, 0), 'east', (4, 0), 0.0), ((4, 3), 'west', (3, 3), 0.0), ((1, 2), 'west', (0, 2), 0.0), ((2, 0), 'north', (2, 0), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((4, 4), 'east', (4, 4), 0.0), ((3, 3), 'north', (3, 4), 0.0), ((3, 3), 'east', (3, 4), 0.0), ((3, 0), 'south', (2, 0), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((4, 4), 'north', (4, 4), 0.0), ((4, 3), 'east', (4, 3), 0.0), ((1, 4), 'east', (2, 4), 0.0), ((2, 0), 'west', (1, 0), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((4, 1), 'north', (4, 2), 0.0), ((4, 2), 'north', (4, 3), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((4, 0), 'west', (4, 1), 0.0), ((4, 4), 'north', (4, 4), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((1, 3), 'south', (1, 2), 0.0), ((1, 3), 'north', (1, 4), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((3, 4), 'south', (3, 3), 0.0), ((3, 4), 'north', (3, 4), 0.0), ((3, 2), 'west', (2, 2), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((1, 3), 'west', (1, 4), 0.0), ((4, 4), 'west', (3, 4), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((1, 2), 'south', (1, 1), 0.0), ((3, 3), 'north', (3, 3), 0.0), ((4, 3), 'north', (4, 4), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((2, 0), 'east', (3, 0), 0.0), ((4, 2), 'west', (3, 2), 0.0), ((3, 2), 'east', (4, 2), 0.0), ((2, 0), 'east', (2, 0), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((4, 2), 'north', (4, 3), 0.0), ((3, 2), 'east', (4, 2), 0.0), ((4, 4), 'east', (4, 4), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((4, 2), 'north', (4, 3), 0.0), ((1, 1), 'east', (1, 0), 0.0), ((4, 4), 'south', (4, 3), 0.0), ((1, 0), 'west', (0, 0), 0.0), ((3, 4), 'north', (4, 4), 0.0), ((4, 1), 'east', (4, 1), 0.0), ((3, 0), 'north', (3, 0), 0.0), ((4, 0), 'north', (4, 1), 0.0), ((4, 0), 'east', (4, 0), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((3, 2), 'east', (4, 2), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((4, 4), 'west', (4, 3), 0.0), ((3, 3), 'west', (3, 3), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((1, 0), 'west', (0, 0), 0.0), ((3, 4), 'south', (3, 3), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((4, 0), 'west', (3, 0), 0.0), ((4, 1), 'north', (4, 1), 0.0), ((3, 4), 'east', (4, 4), 0.0), ((1, 1), 'west', (0, 1), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((1, 3), 'east', (1, 3), 0.0), ((4, 2), 'east', (4, 2), 0.0), ((4, 1), 'east', (4, 0), 0.0), ((3, 3), 'north', (3, 4), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((4, 0), 'south', (4, 0), 0.0), ((1, 4), 'west', (0, 4), 0.0), ((3, 2), 'west', (2, 2), 0.0), ((4, 2), 'south', (4, 1), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((2, 0), 'west', (1, 0), 0.0), ((3, 2), 'east', (4, 2), 0.0), ((3, 3), 'east', (4, 3), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((1, 4), 'west', (0, 4), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((2, 0), 'north', (2, 0), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((3, 3), 'south', (3, 2), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((4, 4), 'west', (3, 4), 0.0), ((1, 4), 'east', (2, 4), 0.0), ((4, 2), 'north', (4, 3), 0.0), ((1, 3), 'east', (1, 3), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((4, 0), 'south', (4, 0), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((4, 2), 'east', (4, 2), 0.0), ((1, 1), 'west', (0, 1), 0.0), ((3, 0), 'west', (2, 0), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((3, 4), 'north', (2, 4), 0.0), ((4, 1), 'east', (4, 1), 0.0), ((3, 3), 'west', (3, 3), 0.0), ((3, 3), 'west', (3, 3), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((4, 3), 'south', (4, 2), 0.0), ((2, 0), 'west', (2, 0), 0.0), ((1, 3), 'west', (0, 3), 0.0), ((3, 2), 'north', (3, 3), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((1, 3), 'south', (1, 3), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((4, 0), 'north', (4, 1), 0.0), ((4, 0), 'south', (4, 0), 0.0), ((3, 0), 'south', (3, 0), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((3, 3), 'west', (3, 3), 0.0), ((1, 0), 'east', (2, 0), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((4, 3), 'west', (3, 3), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((1, 3), 'east', (1, 3), 0.0), ((4, 0), 'north', (4, 0), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((1, 2), 'south', (1, 1), 0.0), ((4, 1), 'west', (4, 1), 0.0), ((1, 4), 'north', (1, 4), 0.0), ((4, 3), 'west', (3, 3), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((4, 0), 'east', (4, 1), 0.0), ((3, 2), 'east', (4, 2), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((1, 4), 'west', (0, 4), 0.0), ((3, 4), 'west', (2, 4), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((3, 4), 'south', (2, 4), 0.0), ((1, 2), 'east', (2, 2), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((1, 4), 'west', (0, 4), 0.0), ((1, 1), 'west', (0, 1), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((1, 1), 'west', (0, 1), 0.0), ((4, 2), 'north', (4, 2), 0.0), ((3, 3), 'west', (3, 3), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((2, 0), 'east', (3, 0), 0.0), ((3, 4), 'south', (4, 4), 0.0), ((3, 0), 'east', (4, 0), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((4, 1), 'east', (4, 1), 0.0), ((4, 4), 'west', (4, 3), 0.0), ((3, 0), 'east', (4, 0), 0.0), ((3, 2), 'south', (3, 2), 0.0), ((3, 3), 'east', (3, 4), 0.0), ((3, 0), 'south', (3, 0), 0.0), ((4, 0), 'west', (3, 0), 0.0), ((1, 1), 'east', (1, 1), 0.0), ((4, 4), 'south', (4, 3), 0.0), ((1, 3), 'south', (1, 2), 0.0), ((1, 2), 'north', (1, 3), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((4, 2), 'east', (4, 2), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((4, 3), 'west', (3, 3), 0.0), ((1, 2), 'north', (0, 2), 0.0), ((1, 3), 'west', (0, 3), 0.0), ((4, 4), 'north', (4, 4), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((1, 3), 'south', (1, 2), 0.0), ((4, 2), 'south', (4, 1), 0.0), ((1, 1), 'south', (0, 1), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((4, 2), 'south', (4, 1), 0.0), ((1, 3), 'north', (1, 4), 0.0), ((1, 2), 'south', (1, 1), 0.0), ((4, 4), 'east', (4, 4), 0.0), ((1, 2), 'west', (0, 2), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((2, 0), 'west', (1, 0), 0.0), ((1, 2), 'east', (2, 2), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((1, 0), 'west', (0, 0), 0.0), ((3, 0), 'east', (4, 0), 0.0), ((1, 4), 'north', (0, 4), 0.0), ((1, 3), 'east', (1, 3), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((3, 3), 'west', (3, 3), 0.0), ((1, 1), 'east', (1, 2), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((3, 4), 'east', (3, 3), 0.0), ((1, 2), 'north', (1, 3), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((4, 0), 'north', (4, 1), 0.0), ((4, 3), 'north', (4, 4), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((1, 4), 'north', (1, 4), 0.0), ((4, 0), 'south', (4, 0), 0.0), ((4, 0), 'east', (4, 0), 0.0), ((3, 4), 'east', (3, 3), 0.0), ((4, 2), 'west', (4, 3), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((3, 0), 'south', (4, 0), 0.0), ((3, 3), 'west', (3, 3), 0.0), ((3, 0), 'north', (3, 0), 0.0), ((4, 4), 'north', (4, 4), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((1, 4), 'north', (2, 4), 0.0), ((4, 3), 'west', (3, 3), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((2, 0), 'north', (2, 0), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((3, 0), 'south', (3, 0), 0.0), ((4, 2), 'south', (4, 1), 0.0), ((1, 3), 'west', (1, 4), 0.0), ((4, 0), 'north', (4, 1), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((1, 2), 'east', (2, 2), 0.0), ((3, 0), 'south', (3, 0), 0.0), ((1, 3), 'south', (1, 2), 0.0), ((2, 0), 'south', (1, 0), 0.0), ((3, 3), 'east', (3, 4), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((1, 1), 'east', (1, 1), 0.0), ((1, 4), 'north', (1, 4), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((3, 0), 'west', (2, 0), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((4, 1), 'north', (4, 2), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((3, 4), 'south', (3, 3), 0.0), ((4, 3), 'south', (4, 2), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((4, 1), 'east', (4, 2), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((4, 2), 'south', (4, 1), 0.0), ((1, 2), 'north', (1, 3), 0.0), ((3, 0), 'north', (3, 0), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((4, 4), 'north', (4, 4), 0.0), ((4, 1), 'east', (4, 1), 0.0), ((1, 4), 'south', (1, 3), 0.0), ((3, 2), 'east', (3, 3), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((1, 2), 'north', (1, 3), 0.0), ((1, 2), 'east', (2, 2), 0.0), ((4, 3), 'west', (3, 3), 0.0), ((2, 0), 'north', (2, 0), 0.0), ((4, 0), 'north', (4, 1), 0.0), ((3, 4), 'north', (3, 4), 0.0), ((4, 1), 'east', (4, 1), 0.0), ((2, 0), 'west', (1, 0), 0.0), ((4, 1), 'west', (4, 1), 0.0), ((1, 3), 'west', (0, 3), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((1, 2), 'south', (1, 1), 0.0), ((4, 2), 'south', (4, 1), 0.0), ((3, 2), 'south', (2, 2), 0.0), ((4, 0), 'east', (4, 0), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((4, 3), 'east', (4, 4), 0.0), ((4, 3), 'north', (4, 4), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((4, 1), 'north', (4, 2), 0.0), ((4, 0), 'east', (4, 0), 0.0), ((4, 1), 'west', (4, 1), 0.0), ((1, 1), 'east', (1, 1), 0.0), ((1, 3), 'east', (1, 3), 0.0), ((1, 2), 'south', (1, 1), 0.0), ((4, 2), 'south', (4, 1), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((4, 2), 'north', (4, 3), 0.0), ((3, 3), 'south', (3, 2), 0.0), ((1, 3), 'west', (1, 4), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((4, 0), 'north', (4, 1), 0.0), ((4, 2), 'east', (4, 2), 0.0), ((2, 0), 'west', (1, 0), 0.0), ((4, 4), 'south', (4, 3), 0.0), ((4, 0), 'east', (4, 0), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((3, 3), 'south', (3, 2), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((1, 3), 'east', (1, 3), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((3, 3), 'west', (3, 3), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((1, 1), 'south', (1, 1), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((1, 4), 'west', (1, 3), 0.0), ((1, 1), 'north', (1, 2), 0.0), ((1, 1), 'west', (0, 1), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((4, 3), 'east', (4, 4), 0.0), ((4, 1), 'south', (4, 0), 0.0), ((3, 2), 'east', (4, 2), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((1, 1), 'east', (1, 1), 0.0), ((2, 0), 'east', (2, 0), 0.0), ((3, 0), 'south', (3, 0), 0.0), ((3, 0), 'east', (3, 0), 0.0), ((1, 3), 'south', (1, 2), 0.0), ((4, 3), 'east', (4, 2), 0.0), ((1, 4), 'south', (1, 3), 0.0), ((4, 1), 'west', (4, 1), 0.0), ((1, 1), 'north', (1, 2), 0.0), ((4, 4), 'west', (4, 4), 0.0), ((4, 1), 'east', (4, 1), 0.0), ((3, 3), 'north', (3, 3), 0.0), ((4, 4), 'north', (4, 4), 0.0), ((1, 2), 'north', (1, 3), 0.0), ((1, 2), 'north', (1, 3), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((4, 0), 'north', (3, 0), 0.0), ((3, 2), 'north', (3, 3), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((1, 2), 'west', (0, 2), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((4, 4), 'east', (4, 4), 0.0), ((3, 3), 'east', (4, 3), 0.0), ((4, 0), 'east', (4, 0), 0.0), ((1, 2), 'west', (0, 2), 0.0), ((3, 0), 'south', (3, 0), 0.0), ((1, 2), 'east', (2, 2), 0.0), ((1, 4), 'south', (1, 3), 0.0), ((3, 3), 'east', (4, 3), 0.0), ((1, 1), 'west', (0, 1), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((4, 0), 'south', (4, 0), 0.0), ((4, 1), 'north', (4, 2), 0.0), ((3, 0), 'west', (2, 0), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((3, 4), 'west', (2, 4), 0.0), ((1, 2), 'west', (0, 2), 0.0), ((4, 3), 'east', (4, 3), 0.0), ((1, 2), 'north', (1, 3), 0.0), ((1, 2), 'south', (1, 1), 0.0), ((1, 4), 'south', (1, 3), 0.0), ((1, 1), 'west', (0, 1), 0.0), ((3, 3), 'south', (3, 2), 0.0), ((1, 0), 'east', (2, 0), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((3, 4), 'south', (3, 3), 0.0), ((4, 0), 'north', (4, 1), 0.0), ((4, 4), 'east', (4, 4), 0.0), ((3, 4), 'east', (4, 4), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((4, 2), 'south', (4, 1), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((1, 2), 'south', (1, 1), 0.0), ((4, 0), 'north', (3, 0), 0.0), ((1, 3), 'north', (1, 4), 0.0), ((3, 2), 'east', (4, 2), 0.0), ((4, 1), 'east', (4, 1), 0.0), ((3, 4), 'north', (3, 4), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((4, 2), 'west', (3, 2), 0.0), ((4, 1), 'east', (4, 1), 0.0), ((4, 2), 'east', (4, 2), 0.0), ((4, 3), 'east', (4, 2), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((4, 4), 'east', (4, 4), 0.0), ((1, 0), 'north', (2, 0), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((1, 1), 'west', (0, 1), 0.0), ((4, 4), 'south', (4, 3), 0.0), ((2, 0), 'west', (1, 0), 0.0), ((3, 4), 'south', (3, 3), 0.0), ((3, 2), 'north', (3, 3), 0.0), ((4, 0), 'east', (4, 0), 0.0), ((1, 0), 'south', (0, 0), 0.0), ((1, 2), 'west', (0, 2), 0.0), ((1, 2), 'east', (2, 2), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((3, 0), 'north', (3, 0), 0.0), ((1, 3), 'east', (1, 3), 0.0), ((1, 4), 'east', (2, 4), 0.0), ((1, 0), 'west', (0, 0), 0.0), ((3, 3), 'south', (3, 2), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((3, 4), 'south', (3, 3), 0.0), ((4, 3), 'south', (4, 3), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((4, 2), 'north', (4, 3), 0.0), ((1, 4), 'west', (0, 4), 0.0), ((4, 2), 'north', (4, 3), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((1, 3), 'west', (0, 3), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((4, 1), 'west', (4, 1), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((4, 2), 'east', (4, 2), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((3, 2), 'north', (3, 3), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((4, 3), 'west', (4, 2), 0.0), ((1, 1), 'north', (1, 2), 0.0), ((4, 4), 'north', (4, 4), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((3, 2), 'north', (3, 3), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((3, 2), 'south', (3, 2), 0.0), ((3, 2), 'west', (2, 2), 0.0), ((4, 1), 'north', (4, 2), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((3, 4), 'north', (4, 4), 0.0), ((3, 4), 'north', (3, 4), 0.0), ((3, 0), 'west', (2, 0), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((3, 2), 'south', (3, 2), 0.0), ((1, 3), 'east', (1, 3), 0.0), ((4, 1), 'east', (4, 1), 0.0), ((4, 2), 'west', (3, 2), 0.0), ((4, 3), 'north', (4, 4), 0.0), ((3, 3), 'east', (4, 3), 0.0), ((4, 4), 'east', (4, 3), 0.0), ((4, 3), 'south', (4, 3), 0.0), ((3, 0), 'north', (3, 0), 0.0), ((3, 0), 'west', (2, 0), 0.0), ((3, 3), 'east', (4, 3), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((3, 3), 'north', (3, 4), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((3, 4), 'north', (2, 4), 0.0), ((1, 2), 'north', (1, 3), 0.0), ((4, 4), 'south', (4, 3), 0.0), ((1, 2), 'south', (1, 1), 0.0), ((1, 0), 'south', (1, 0), 0.0), ((3, 0), 'east', (4, 0), 0.0), ((1, 3), 'south', (1, 2), 0.0), ((3, 0), 'west', (2, 0), 0.0), ((4, 0), 'west', (4, 0), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((1, 3), 'north', (1, 4), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((1, 0), 'west', (0, 0), 0.0), ((4, 4), 'south', (3, 4), 0.0), ((2, 0), 'north', (2, 0), 0.0), ((3, 3), 'north', (3, 4), 0.0), ((3, 0), 'north', (3, 0), 0.0), ((1, 4), 'east', (2, 4), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((2, 0), 'west', (1, 0), 0.0), ((4, 4), 'south', (4, 3), 0.0), ((1, 2), 'west', (0, 2), 0.0), ((1, 4), 'east', (2, 4), 0.0), ((4, 1), 'east', (4, 2), 0.0), ((1, 2), 'north', (1, 3), 0.0), ((4, 4), 'south', (4, 3), 0.0), ((1, 0), 'west', (1, 0), 0.0), ((4, 1), 'north', (4, 2), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((4, 3), 'east', (4, 3), 0.0), ((1, 2), 'west', (1, 1), 0.0), ((3, 2), 'south', (4, 2), 0.0), ((1, 0), 'north', (1, 1), 0.0), ((3, 2), 'north', (3, 3), 0.0), ((4, 4), 'west', (4, 4), 0.0), ((3, 3), 'east', (4, 3), 0.0), ((4, 4), 'east', (4, 4), 0.0), ((1, 2), 'south', (1, 1), 0.0), ((1, 0), 'east', (2, 0), 0.0), ((3, 0), 'east', (4, 0), 0.0), ((1, 4), 'west', (0, 4), 0.0), ((4, 4), 'north', (4, 4), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((4, 3), 'south', (4, 2), 0.0), ((3, 0), 'west', (3, 0), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((3, 3), 'south', (3, 2), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((4, 0), 'south', (4, 0), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((1, 1), 'west', (0, 1), 0.0), ((4, 2), 'east', (4, 2), 0.0), ((4, 3), 'south', (4, 2), 0.0), ((3, 0), 'east', (4, 0), 0.0), ((1, 3), 'east', (1, 3), 0.0), ((1, 2), 'east', (2, 2), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((1, 3), 'east', (1, 2), 0.0), ((1, 4), 'east', (2, 4), 0.0), ((1, 4), 'east', (2, 4), 0.0), ((3, 3), 'east', (3, 4), 0.0), ((3, 2), 'north', (3, 3), 0.0), ((3, 4), 'east', (3, 3), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((1, 4), 'west', (0, 4), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((3, 3), 'east', (4, 3), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((4, 0), 'east', (4, 0), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((1, 2), 'south', (1, 1), 0.0), ((4, 0), 'west', (3, 0), 0.0), ((1, 4), 'south', (0, 4), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((4, 4), 'east', (4, 4), 0.0), ((2, 0), 'north', (2, 0), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((3, 3), 'west', (3, 3), 0.0), ((4, 1), 'east', (4, 1), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((3, 4), 'east', (3, 3), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((1, 4), 'east', (2, 4), 0.0), ((1, 0), 'north', (1, 1), 0.0), ((1, 2), 'east', (2, 2), 0.0), ((1, 2), 'west', (0, 2), 0.0), ((1, 2), 'west', (0, 2), 0.0), ((3, 3), 'south', (3, 2), 0.0), ((1, 3), 'north', (1, 4), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((3, 4), 'north', (3, 4), 0.0), ((1, 2), 'north', (2, 2), 0.0), ((1, 3), 'north', (1, 4), 0.0), ((3, 0), 'east', (3, 0), 0.0), ((4, 0), 'north', (4, 1), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((3, 4), 'north', (3, 4), 0.0), ((2, 0), 'west', (1, 0), 0.0), ((4, 3), 'north', (4, 4), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((3, 2), 'south', (3, 2), 0.0), ((4, 4), 'north', (4, 4), 0.0), ((1, 1), 'north', (1, 2), 0.0), ((3, 2), 'north', (3, 3), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((3, 0), 'east', (3, 0), 0.0), ((1, 0), 'west', (0, 0), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((1, 3), 'north', (1, 3), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((1, 1), 'west', (1, 0), 0.0), ((1, 3), 'west', (0, 3), 0.0), ((4, 2), 'west', (3, 2), 0.0), ((1, 0), 'east', (2, 0), 0.0), ((1, 3), 'south', (1, 2), 0.0), ((3, 2), 'east', (4, 2), 0.0), ((4, 2), 'south', (4, 1), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((4, 2), 'east', (4, 2), 0.0), ((4, 2), 'south', (4, 1), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((1, 0), 'east', (2, 0), 0.0), ((1, 2), 'south', (1, 1), 0.0), ((1, 4), 'west', (0, 4), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((1, 1), 'south', (1, 1), 0.0), ((1, 0), 'north', (1, 1), 0.0), ((3, 2), 'east', (3, 3), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((4, 3), 'south', (4, 2), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((3, 0), 'east', (4, 0), 0.0), ((4, 4), 'south', (4, 3), 0.0), ((2, 0), 'west', (2, 0), 0.0), ((3, 4), 'north', (3, 4), 0.0), ((1, 3), 'west', (0, 3), 0.0), ((1, 3), 'north', (1, 4), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((1, 0), 'west', (1, 0), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((4, 3), 'north', (4, 4), 0.0), ((4, 4), 'west', (4, 4), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((1, 0), 'south', (0, 0), 0.0), ((4, 1), 'west', (4, 1), 0.0), ((3, 3), 'east', (4, 3), 0.0), ((4, 4), 'east', (4, 4), 0.0), ((1, 4), 'east', (2, 4), 0.0), ((1, 3), 'south', (0, 3), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((3, 3), 'west', (3, 3), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((3, 3), 'east', (3, 2), 0.0), ((2, 0), 'south', (2, 0), 0.0), ((4, 1), 'north', (4, 2), 0.0), ((1, 1), 'south', (1, 0), 0.0), ((4, 4), 'south', (4, 3), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((1, 1), 'east', (1, 1), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((3, 0), 'west', (2, 0), 0.0), ((3, 4), 'east', (4, 4), 0.0), ((4, 4), 'west', (3, 4), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((4, 3), 'north', (4, 4), 0.0), ((4, 0), 'west', (3, 0), 0.0), ((4, 4), 'north', (4, 4), 0.0), ((4, 3), 'south', (4, 2), 0.0), ((1, 0), 'east', (2, 0), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((4, 4), 'north', (4, 4), 0.0), ((4, 3), 'west', (3, 3), 0.0), ((3, 4), 'east', (3, 3), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((3, 3), 'south', (3, 3), 0.0), ((3, 4), 'south', (3, 3), 0.0), ((1, 2), 'south', (1, 1), 0.0), ((3, 2), 'north', (3, 3), 0.0), ((1, 1), 'south', (1, 0), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((4, 4), 'west', (3, 4), 0.0), ((1, 0), 'north', (1, 1), 0.0), ((4, 3), 'east', (4, 3), 0.0), ((2, 0), 'west', (2, 0), 0.0), ((3, 0), 'south', (2, 0), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((3, 0), 'west', (2, 0), 0.0), ((4, 2), 'east', (4, 2), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((2, 4), 'exit', 'TERMINAL_STATE', 10)]55 elif test_name == '5-coord-extractor':56 list_experiences = [((1, 0), 'south', (1, 0), 0.0), ((1, 0), 'south', (1, 0), 0.0), ((3, 0), 'south', (3, 0), 0.0), ((1, 0), 'south', (1, 0), 0.0), ((3, 0), 'south', (3, 0), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((1, 0), 'south', (1, 0), 0.0), ((3, 0), 'south', (3, 0), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((1, 0), 'east', (2, 0), 0.0), ((1, 0), 'south', (1, 0), 0.0), ((3, 0), 'south', (3, 0), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((1, 0), 'east', (2, 0), 0.0), ((4, 1), 'west', (4, 1), 0.0), ((1, 0), 'south', (1, 0), 0.0), ((3, 0), 'south', (3, 0), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((1, 0), 'east', (2, 0), 0.0), ((4, 1), 'west', (4, 1), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((1, 0), 'south', (1, 0), 0.0), ((3, 0), 'south', (3, 0), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((1, 0), 'east', (2, 0), 0.0), ((4, 1), 'west', (4, 1), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((1, 0), 'south', (1, 0), 0.0), ((3, 0), 'south', (3, 0), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((1, 0), 'east', (2, 0), 0.0), ((4, 1), 'west', (4, 1), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((1, 0), 'south', (1, 0), 0.0), ((3, 0), 'south', (3, 0), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((1, 0), 'east', (2, 0), 0.0), ((4, 1), 'west', (4, 1), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((1, 1), 'north', (0, 1), 0.0), ((1, 0), 'south', (1, 0), 0.0), ((3, 0), 'south', (3, 0), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((1, 0), 'east', (2, 0), 0.0), ((4, 1), 'west', (4, 1), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((1, 1), 'north', (0, 1), 0.0), ((2, 0), 'south', (2, 0), 0.0), ((3, 3), 'east', (4, 3), 0.0), ((4, 0), 'west', (4, 0), 0.0), ((4, 2), 'north', (3, 2), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((3, 0), 'west', (2, 0), 0.0), ((1, 3), 'west', (0, 3), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((4, 3), 'east', (4, 3), 0.0), ((3, 2), 'north', (3, 3), 0.0), ((4, 4), 'east', (4, 4), 0.0), ((3, 3), 'north', (3, 3), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((4, 1), 'east', (4, 2), 0.0), ((4, 0), 'west', (3, 0), 0.0), ((1, 1), 'east', (1, 1), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((3, 3), 'west', (3, 3), 0.0), ((4, 4), 'south', (4, 3), 0.0), ((1, 1), 'north', (1, 2), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((3, 0), 'north', (3, 0), 0.0), ((4, 2), 'west', (4, 3), 0.0), ((4, 2), 'west', (3, 2), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((1, 0), 'west', (1, 1), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((1, 4), 'south', (1, 3), 0.0), ((3, 0), 'south', (3, 0), 0.0), ((3, 0), 'west', (2, 0), 0.0), ((1, 2), 'south', (1, 1), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((4, 4), 'west', (3, 4), 0.0), ((3, 0), 'west', (2, 0), 0.0), ((1, 1), 'west', (0, 1), 0.0), ((1, 1), 'west', (0, 1), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((1, 1), 'north', (0, 1), 0.0), ((1, 0), 'north', (1, 1), 0.0), ((3, 3), 'north', (3, 4), 0.0), ((1, 2), 'east', (2, 2), 0.0), ((4, 1), 'north', (4, 2), 0.0), ((3, 2), 'east', (4, 2), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((3, 2), 'east', (4, 2), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((1, 0), 'west', (0, 0), 0.0), ((1, 4), 'west', (0, 4), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((4, 2), 'east', (4, 2), 0.0), ((4, 3), 'east', (4, 3), 0.0), ((3, 4), 'east', (4, 4), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((1, 0), 'north', (1, 1), 0.0), ((1, 1), 'east', (1, 2), 0.0), ((4, 2), 'south', (4, 1), 0.0), ((4, 2), 'east', (4, 2), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((1, 1), 'south', (1, 0), 0.0), ((1, 4), 'east', (2, 4), 0.0), ((1, 2), 'west', (0, 2), 0.0), ((2, 0), 'east', (3, 0), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((4, 0), 'east', (4, 1), 0.0), ((3, 0), 'east', (3, 0), 0.0), ((1, 0), 'west', (0, 0), 0.0), ((1, 4), 'west', (0, 4), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((4, 1), 'north', (4, 2), 0.0), ((1, 1), 'west', (0, 1), 0.0), ((3, 2), 'south', (3, 2), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((3, 0), 'east', (4, 0), 0.0), ((4, 0), 'south', (4, 0), 0.0), ((1, 3), 'west', (0, 3), 0.0), ((1, 4), 'south', (1, 3), 0.0), ((1, 0), 'south', (1, 0), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((4, 2), 'east', (4, 2), 0.0), ((4, 2), 'east', (4, 2), 0.0), ((2, 0), 'north', (2, 0), 0.0), ((3, 2), 'east', (4, 2), 0.0), ((3, 2), 'south', (3, 2), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((4, 1), 'east', (4, 1), 0.0), ((4, 0), 'north', (4, 1), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((3, 4), 'east', (4, 4), 0.0), ((1, 2), 'south', (1, 1), 0.0), ((1, 0), 'north', (1, 1), 0.0), ((3, 0), 'east', (4, 0), 0.0), ((1, 3), 'west', (0, 3), 0.0), ((1, 4), 'north', (1, 4), 0.0), ((4, 4), 'west', (3, 4), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((3, 2), 'south', (3, 2), 0.0), ((3, 2), 'east', (4, 2), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((3, 3), 'east', (4, 3), 0.0), ((3, 3), 'west', (3, 3), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((4, 0), 'north', (4, 0), 0.0), ((2, 0), 'south', (2, 0), 0.0), ((4, 1), 'east', (4, 1), 0.0), ((2, 0), 'south', (2, 0), 0.0), ((1, 3), 'south', (1, 3), 0.0), ((2, 0), 'north', (2, 0), 0.0), ((3, 3), 'south', (4, 3), 0.0), ((4, 1), 'north', (4, 2), 0.0), ((1, 0), 'north', (1, 1), 0.0), ((4, 1), 'east', (4, 1), 0.0), ((4, 2), 'west', (3, 2), 0.0), ((3, 4), 'north', (4, 4), 0.0), ((4, 1), 'west', (4, 1), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((1, 2), 'west', (0, 2), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((1, 3), 'south', (1, 2), 0.0), ((1, 1), 'south', (1, 0), 0.0), ((4, 2), 'east', (4, 2), 0.0), ((4, 3), 'west', (3, 3), 0.0), ((3, 4), 'west', (2, 4), 0.0), ((3, 2), 'east', (4, 2), 0.0), ((3, 4), 'east', (4, 4), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((1, 2), 'south', (1, 1), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((3, 0), 'north', (2, 0), 0.0), ((3, 2), 'north', (2, 2), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((3, 0), 'south', (3, 0), 0.0), ((2, 0), 'west', (2, 0), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((1, 0), 'west', (0, 0), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((3, 4), 'west', (2, 4), 0.0), ((1, 3), 'south', (1, 2), 0.0), ((1, 2), 'east', (1, 1), 0.0), ((1, 0), 'north', (0, 0), 0.0), ((4, 0), 'south', (4, 0), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((4, 0), 'south', (4, 0), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((1, 0), 'east', (2, 0), 0.0), ((4, 0), 'east', (4, 0), 0.0), ((1, 3), 'south', (1, 2), 0.0), ((3, 0), 'east', (4, 0), 0.0), ((1, 1), 'east', (1, 1), 0.0), ((3, 0), 'south', (3, 0), 0.0), ((3, 4), 'south', (3, 3), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((3, 2), 'west', (2, 2), 0.0), ((4, 4), 'east', (4, 4), 0.0), ((4, 0), 'south', (3, 0), 0.0), ((1, 2), 'north', (1, 3), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((4, 2), 'south', (3, 2), 0.0), ((4, 1), 'south', (4, 0), 0.0), ((3, 3), 'south', (3, 2), 0.0), ((4, 0), 'east', (4, 0), 0.0), ((1, 4), 'east', (2, 4), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((3, 3), 'south', (3, 2), 0.0), ((3, 2), 'west', (2, 2), 0.0), ((3, 4), 'west', (2, 4), 0.0), ((4, 2), 'south', (4, 1), 0.0), ((1, 3), 'south', (1, 2), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((4, 0), 'north', (4, 1), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((1, 3), 'north', (0, 3), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((1, 3), 'south', (1, 2), 0.0), ((1, 3), 'west', (1, 2), 0.0), ((4, 4), 'north', (4, 4), 0.0), ((2, 0), 'north', (2, 0), 0.0), ((1, 2), 'north', (1, 3), 0.0), ((3, 4), 'west', (2, 4), 0.0), ((2, 0), 'east', (3, 0), 0.0), ((1, 0), 'west', (0, 0), 0.0), ((3, 0), 'west', (3, 0), 0.0), ((3, 3), 'east', (4, 3), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((3, 2), 'east', (4, 2), 0.0), ((4, 4), 'west', (3, 4), 0.0), ((4, 3), 'east', (4, 2), 0.0), ((1, 1), 'south', (1, 1), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((3, 2), 'east', (4, 2), 0.0), ((3, 4), 'south', (3, 3), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((1, 4), 'north', (1, 4), 0.0), ((2, 0), 'west', (2, 0), 0.0), ((3, 3), 'south', (3, 2), 0.0), ((1, 3), 'west', (0, 3), 0.0), ((3, 3), 'north', (3, 4), 0.0), ((3, 4), 'south', (4, 4), 0.0), ((1, 0), 'east', (2, 0), 0.0), ((4, 2), 'east', (4, 2), 0.0), ((4, 2), 'south', (4, 1), 0.0), ((1, 3), 'north', (1, 4), 0.0), ((4, 4), 'north', (4, 4), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((1, 0), 'north', (0, 0), 0.0), ((3, 2), 'south', (4, 2), 0.0), ((1, 0), 'east', (2, 0), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((3, 0), 'east', (4, 0), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((4, 1), 'north', (4, 2), 0.0), ((4, 4), 'north', (4, 4), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((4, 1), 'south', (4, 0), 0.0), ((3, 4), 'east', (4, 4), 0.0), ((3, 0), 'west', (3, 0), 0.0), ((4, 1), 'south', (4, 0), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((3, 4), 'north', (3, 4), 0.0), ((2, 0), 'north', (2, 0), 0.0), ((3, 4), 'west', (2, 4), 0.0), ((3, 0), 'north', (3, 0), 0.0), ((4, 4), 'west', (3, 4), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((4, 3), 'south', (3, 3), 0.0), ((4, 4), 'south', (4, 3), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((4, 2), 'east', (4, 2), 0.0), ((4, 0), 'west', (4, 0), 0.0), ((4, 3), 'west', (3, 3), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((1, 1), 'south', (1, 0), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((1, 4), 'west', (0, 4), 0.0), ((3, 4), 'west', (2, 4), 0.0), ((1, 1), 'west', (0, 1), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((4, 4), 'east', (4, 4), 0.0), ((1, 3), 'north', (1, 4), 0.0), ((2, 0), 'south', (2, 0), 0.0), ((1, 2), 'east', (2, 2), 0.0), ((2, 0), 'east', (2, 0), 0.0), ((1, 1), 'north', (0, 1), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((4, 4), 'east', (4, 3), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((1, 4), 'west', (1, 3), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((1, 0), 'east', (2, 0), 0.0), ((1, 0), 'north', (1, 1), 0.0), ((3, 0), 'south', (4, 0), 0.0), ((4, 0), 'north', (4, 1), 0.0), ((3, 4), 'east', (4, 4), 0.0), ((4, 1), 'south', (4, 0), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((4, 2), 'east', (4, 2), 0.0), ((3, 2), 'east', (3, 2), 0.0), ((3, 0), 'west', (2, 0), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((4, 4), 'south', (4, 3), 0.0), ((1, 2), 'west', (0, 2), 0.0), ((1, 4), 'east', (2, 4), 0.0), ((1, 1), 'south', (1, 0), 0.0), ((4, 1), 'east', (4, 0), 0.0), ((3, 0), 'north', (3, 0), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((3, 3), 'east', (3, 4), 0.0), ((3, 2), 'west', (2, 2), 0.0), ((4, 2), 'east', (4, 2), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((1, 3), 'east', (1, 3), 0.0), ((1, 0), 'east', (1, 1), 0.0), ((1, 1), 'west', (0, 1), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((4, 1), 'south', (4, 0), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((1, 0), 'south', (2, 0), 0.0), ((1, 0), 'east', (2, 0), 0.0), ((4, 2), 'north', (4, 3), 0.0), ((3, 2), 'south', (3, 2), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((1, 3), 'north', (1, 4), 0.0), ((4, 4), 'west', (3, 4), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((4, 3), 'north', (4, 4), 0.0), ((4, 3), 'east', (4, 3), 0.0), ((1, 0), 'west', (1, 1), 0.0), ((2, 0), 'south', (2, 0), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((4, 0), 'south', (4, 0), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((4, 1), 'north', (4, 2), 0.0), ((4, 3), 'east', (4, 4), 0.0), ((4, 4), 'east', (4, 4), 0.0), ((1, 0), 'north', (2, 0), 0.0), ((4, 4), 'west', (3, 4), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((4, 0), 'east', (4, 0), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((3, 0), 'west', (2, 0), 0.0), ((1, 3), 'west', (0, 3), 0.0), ((3, 0), 'east', (4, 0), 0.0), ((4, 1), 'east', (4, 1), 0.0), ((4, 4), 'west', (3, 4), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((3, 2), 'west', (2, 2), 0.0), ((1, 4), 'west', (0, 4), 0.0), ((4, 2), 'east', (4, 2), 0.0), ((1, 4), 'south', (1, 3), 0.0), ((1, 4), 'east', (2, 4), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((4, 4), 'west', (3, 4), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((4, 2), 'south', (4, 1), 0.0), ((1, 1), 'south', (1, 0), 0.0), ((1, 3), 'south', (0, 3), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((1, 3), 'south', (1, 2), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((4, 1), 'east', (4, 1), 0.0), ((3, 3), 'north', (3, 3), 0.0), ((1, 3), 'west', (0, 3), 0.0), ((1, 1), 'north', (0, 1), 0.0), ((3, 0), 'north', (3, 0), 0.0), ((1, 2), 'north', (0, 2), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((3, 2), 'west', (3, 2), 0.0), ((4, 4), 'south', (4, 4), 0.0), ((1, 4), 'east', (1, 4), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((1, 4), 'east', (2, 4), 0.0), ((1, 2), 'west', (0, 2), 0.0), ((4, 2), 'north', (4, 3), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((4, 3), 'south', (4, 2), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((4, 1), 'south', (4, 0), 0.0), ((4, 4), 'south', (4, 3), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((1, 2), 'east', (2, 2), 0.0), ((4, 1), 'south', (4, 0), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((4, 1), 'east', (4, 1), 0.0), ((4, 3), 'west', (3, 3), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((1, 3), 'east', (1, 3), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((3, 3), 'west', (3, 4), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((1, 0), 'south', (1, 0), 0.0), ((3, 2), 'south', (3, 2), 0.0), ((3, 4), 'west', (2, 4), 0.0), ((3, 0), 'south', (3, 0), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((2, 0), 'south', (2, 0), 0.0), ((4, 2), 'south', (4, 1), 0.0), ((4, 0), 'east', (4, 0), 0.0), ((4, 4), 'west', (3, 4), 0.0), ((3, 3), 'west', (3, 3), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((4, 1), 'west', (4, 1), 0.0), ((4, 1), 'west', (4, 1), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((1, 1), 'east', (1, 1), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((3, 4), 'west', (3, 4), 0.0), ((3, 2), 'south', (3, 2), 0.0), ((2, 0), 'south', (2, 0), 0.0), ((3, 3), 'south', (3, 2), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((3, 3), 'north', (3, 4), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((4, 2), 'south', (4, 1), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((4, 3), 'north', (4, 3), 0.0), ((2, 0), 'west', (1, 0), 0.0), ((4, 4), 'north', (4, 4), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((4, 4), 'east', (4, 4), 0.0), ((4, 2), 'north', (4, 3), 0.0), ((3, 4), 'north', (3, 4), 0.0), ((4, 4), 'west', (3, 4), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((3, 4), 'south', (3, 3), 0.0), ((1, 4), 'east', (2, 4), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((4, 3), 'east', (4, 3), 0.0), ((1, 3), 'north', (1, 4), 0.0), ((3, 4), 'east', (4, 4), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((2, 0), 'south', (2, 0), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((4, 2), 'north', (4, 2), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((2, 0), 'east', (3, 0), 0.0), ((1, 0), 'south', (2, 0), 0.0), ((1, 1), 'south', (1, 0), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((4, 4), 'north', (4, 4), 0.0), ((1, 3), 'east', (1, 3), 0.0), ((3, 2), 'west', (2, 2), 0.0), ((1, 4), 'east', (2, 4), 0.0), ((1, 0), 'west', (1, 0), 0.0), ((1, 1), 'south', (1, 0), 0.0), ((3, 0), 'west', (3, 0), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((3, 0), 'south', (3, 0), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((3, 0), 'west', (3, 0), 0.0), ((4, 4), 'north', (4, 4), 0.0), ((4, 4), 'north', (4, 4), 0.0), ((2, 0), 'north', (1, 0), 0.0), ((1, 4), 'north', (1, 4), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((4, 2), 'north', (4, 3), 0.0), ((1, 1), 'west', (0, 1), 0.0), ((1, 1), 'north', (1, 2), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((4, 4), 'north', (4, 4), 0.0), ((3, 4), 'south', (3, 3), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((3, 2), 'south', (2, 2), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((4, 3), 'west', (3, 3), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((3, 0), 'north', (3, 0), 0.0), ((3, 4), 'west', (2, 4), 0.0), ((1, 0), 'west', (0, 0), 0.0), ((3, 4), 'east', (4, 4), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((1, 0), 'south', (1, 0), 0.0), ((1, 0), 'north', (2, 0), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((4, 2), 'south', (4, 1), 0.0), ((1, 4), 'north', (1, 4), 0.0), ((3, 4), 'west', (2, 4), 0.0), ((1, 0), 'north', (1, 1), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((3, 4), 'north', (3, 4), 0.0), ((2, 0), 'west', (1, 0), 0.0), ((1, 4), 'north', (1, 4), 0.0), ((3, 2), 'south', (2, 2), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((3, 3), 'east', (3, 4), 0.0), ((4, 0), 'east', (4, 0), 0.0), ((3, 0), 'east', (4, 0), 0.0), ((4, 1), 'east', (4, 1), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((1, 4), 'west', (0, 4), 0.0), ((4, 3), 'west', (4, 2), 0.0), ((4, 3), 'west', (3, 3), 0.0), ((4, 4), 'west', (4, 4), 0.0), ((4, 2), 'north', (4, 3), 0.0), ((4, 3), 'north', (4, 3), 0.0), ((1, 2), 'west', (0, 2), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((4, 3), 'east', (4, 3), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((4, 3), 'south', (4, 2), 0.0), ((1, 4), 'north', (0, 4), 0.0), ((1, 0), 'west', (1, 1), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((3, 2), 'north', (3, 3), 0.0), ((1, 3), 'west', (0, 3), 0.0), ((3, 0), 'west', (3, 0), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((1, 2), 'north', (1, 3), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((1, 3), 'west', (0, 3), 0.0), ((2, 0), 'east', (3, 0), 0.0), ((3, 4), 'west', (2, 4), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((1, 3), 'south', (0, 3), 0.0), ((1, 3), 'west', (0, 3), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((2, 0), 'west', (1, 0), 0.0), ((3, 3), 'north', (4, 3), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((4, 0), 'west', (3, 0), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((4, 2), 'east', (4, 2), 0.0), ((1, 3), 'north', (1, 4), 0.0), ((1, 4), 'south', (1, 3), 0.0), ((4, 4), 'south', (4, 3), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((1, 1), 'south', (0, 1), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((3, 3), 'south', (3, 2), 0.0), ((3, 4), 'south', (4, 4), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((4, 1), 'west', (4, 1), 0.0), ((3, 2), 'north', (3, 3), 0.0), ((4, 0), 'east', (4, 0), 0.0), ((1, 0), 'north', (1, 1), 0.0), ((1, 4), 'west', (0, 4), 0.0), ((3, 3), 'west', (3, 3), 0.0), ((3, 4), 'east', (4, 4), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((3, 0), 'west', (2, 0), 0.0), ((1, 4), 'north', (1, 4), 0.0), ((1, 2), 'south', (1, 1), 0.0), ((4, 3), 'south', (4, 2), 0.0), ((3, 2), 'south', (3, 2), 0.0), ((2, 0), 'south', (2, 0), 0.0), ((4, 1), 'north', (4, 2), 0.0), ((1, 1), 'east', (1, 2), 0.0), ((2, 0), 'west', (1, 0), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((2, 0), 'south', (2, 0), 0.0), ((3, 2), 'east', (4, 2), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((1, 1), 'south', (1, 0), 0.0), ((2, 0), 'east', (3, 0), 0.0), ((1, 2), 'north', (1, 3), 0.0), ((1, 2), 'south', (1, 1), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((1, 0), 'south', (1, 0), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((4, 4), 'north', (4, 4), 0.0), ((1, 0), 'east', (1, 0), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((3, 3), 'north', (4, 3), 0.0), ((4, 1), 'east', (4, 1), 0.0), ((3, 0), 'east', (4, 0), 0.0), ((1, 1), 'north', (1, 2), 0.0), ((4, 0), 'north', (4, 1), 0.0), ((1, 3), 'east', (1, 3), 0.0), ((3, 3), 'east', (3, 2), 0.0), ((1, 0), 'west', (0, 0), 0.0), ((3, 2), 'east', (4, 2), 0.0), ((4, 3), 'south', (4, 2), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((1, 3), 'west', (0, 3), 0.0), ((1, 0), 'east', (2, 0), 0.0), ((3, 2), 'west', (3, 3), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((4, 2), 'south', (4, 1), 0.0), ((4, 2), 'north', (4, 3), 0.0), ((4, 1), 'east', (4, 1), 0.0), ((1, 3), 'north', (1, 4), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((4, 1), 'west', (4, 1), 0.0), ((4, 2), 'south', (4, 1), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((4, 2), 'east', (4, 2), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((3, 2), 'north', (3, 3), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((1, 4), 'south', (1, 3), 0.0), ((4, 4), 'north', (4, 4), 0.0), ((4, 3), 'south', (4, 2), 0.0), ((4, 1), 'north', (4, 2), 0.0), ((3, 0), 'south', (3, 0), 0.0), ((3, 0), 'north', (3, 0), 0.0), ((1, 0), 'east', (1, 0), 0.0), ((2, 0), 'east', (3, 0), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((3, 4), 'east', (4, 4), 0.0), ((4, 1), 'north', (4, 2), 0.0), ((2, 0), 'north', (2, 0), 0.0), ((4, 2), 'south', (4, 1), 0.0), ((4, 0), 'west', (4, 1), 0.0), ((1, 3), 'north', (1, 4), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((4, 1), 'south', (4, 0), 0.0), ((1, 2), 'west', (1, 1), 0.0), ((4, 4), 'north', (4, 4), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((4, 4), 'west', (3, 4), 0.0), ((4, 1), 'north', (4, 2), 0.0), ((1, 4), 'north', (2, 4), 0.0), ((3, 3), 'south', (3, 2), 0.0), ((4, 1), 'north', (4, 2), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((3, 2), 'west', (2, 2), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((4, 1), 'west', (4, 2), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((4, 1), 'east', (4, 1), 0.0), ((4, 2), 'south', (4, 1), 0.0), ((1, 4), 'north', (2, 4), 0.0), ((1, 0), 'west', (0, 0), 0.0), ((4, 4), 'south', (4, 3), 0.0), ((4, 2), 'north', (4, 3), 0.0), ((4, 4), 'west', (3, 4), 0.0), ((4, 0), 'east', (4, 0), 0.0), ((1, 3), 'south', (1, 2), 0.0), ((1, 0), 'west', (0, 0), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((4, 4), 'north', (4, 4), 0.0), ((4, 0), 'east', (4, 0), 0.0), ((3, 3), 'west', (3, 3), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((1, 1), 'south', (1, 1), 0.0), ((3, 0), 'east', (4, 0), 0.0), ((3, 3), 'west', (3, 3), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((3, 4), 'west', (2, 4), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((1, 0), 'south', (1, 0), 0.0), ((3, 2), 'east', (4, 2), 0.0), ((4, 4), 'south', (4, 3), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((2, 0), 'south', (1, 0), 0.0), ((4, 0), 'east', (4, 0), 0.0), ((3, 3), 'south', (4, 3), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((1, 3), 'south', (1, 2), 0.0), ((1, 3), 'west', (0, 3), 0.0), ((4, 4), 'south', (4, 3), 0.0), ((1, 1), 'south', (1, 0), 0.0), ((3, 4), 'east', (4, 4), 0.0), ((4, 4), 'south', (4, 3), 0.0), ((2, 0), 'north', (2, 0), 0.0), ((4, 1), 'south', (4, 0), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((2, 0), 'south', (2, 0), 0.0), ((3, 4), 'south', (3, 3), 0.0), ((4, 0), 'north', (4, 1), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((4, 3), 'east', (4, 4), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((1, 2), 'south', (0, 2), 0.0), ((4, 0), 'south', (4, 0), 0.0), ((1, 1), 'south', (1, 0), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((4, 1), 'west', (4, 0), 0.0), ((4, 2), 'north', (4, 3), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((1, 0), 'west', (0, 0), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((1, 2), 'west', (0, 2), 0.0), ((1, 0), 'north', (1, 1), 0.0), ((1, 1), 'east', (1, 1), 0.0), ((1, 3), 'west', (0, 3), 0.0), ((4, 2), 'west', (3, 2), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((4, 1), 'south', (4, 1), 0.0), ((4, 4), 'north', (4, 4), 0.0), ((4, 4), 'east', (4, 4), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((1, 2), 'west', (0, 2), 0.0), ((1, 4), 'east', (2, 4), 0.0), ((4, 1), 'south', (4, 1), 0.0), ((3, 3), 'south', (3, 2), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((4, 3), 'west', (4, 4), 0.0), ((4, 4), 'south', (4, 3), 0.0), ((1, 2), 'north', (1, 3), 0.0), ((4, 1), 'west', (4, 0), 0.0), ((1, 1), 'east', (1, 0), 0.0), ((1, 4), 'north', (1, 4), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((4, 2), 'north', (4, 3), 0.0), ((4, 1), 'south', (4, 0), 0.0), ((4, 4), 'north', (4, 4), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((1, 1), 'west', (0, 1), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((3, 0), 'east', (4, 0), 0.0), ((1, 1), 'south', (1, 0), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((1, 0), 'east', (2, 0), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((1, 4), 'east', (1, 4), 0.0), ((3, 4), 'north', (3, 4), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((3, 0), 'west', (2, 0), 0.0), ((3, 0), 'south', (3, 0), 0.0), ((4, 1), 'west', (4, 1), 0.0), ((4, 4), 'east', (4, 4), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((1, 3), 'north', (1, 4), 0.0), ((1, 0), 'east', (2, 0), 0.0), ((1, 1), 'east', (1, 1), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((1, 4), 'east', (1, 4), 0.0), ((3, 2), 'north', (3, 3), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((3, 2), 'east', (4, 2), 0.0), ((3, 0), 'west', (2, 0), 0.0), ((3, 0), 'north', (3, 0), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((4, 1), 'west', (4, 1), 0.0), ((1, 1), 'south', (1, 0), 0.0), ((1, 2), 'west', (0, 2), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((4, 3), 'north', (4, 4), 0.0), ((1, 2), 'north', (0, 2), 0.0), ((4, 2), 'east', (4, 2), 0.0), ((4, 4), 'south', (4, 3), 0.0), ((3, 2), 'east', (3, 2), 0.0), ((1, 1), 'north', (1, 2), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((4, 1), 'south', (4, 0), 0.0), ((3, 3), 'north', (3, 3), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((1, 1), 'north', (1, 2), 0.0), ((2, 0), 'south', (3, 0), 0.0), ((4, 2), 'west', (3, 2), 0.0), ((3, 4), 'south', (3, 3), 0.0), ((1, 1), 'west', (0, 1), 0.0), ((1, 0), 'east', (2, 0), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((1, 2), 'east', (1, 3), 0.0), ((4, 1), 'west', (4, 1), 0.0), ((1, 1), 'south', (1, 0), 0.0), ((3, 0), 'west', (2, 0), 0.0), ((4, 0), 'north', (4, 1), 0.0), ((4, 3), 'north', (4, 4), 0.0), ((4, 3), 'east', (4, 4), 0.0), ((4, 0), 'east', (4, 0), 0.0), ((4, 0), 'west', (3, 0), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((3, 2), 'south', (3, 2), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((4, 4), 'south', (4, 3), 0.0), ((3, 4), 'north', (3, 4), 0.0), ((4, 3), 'east', (4, 3), 0.0), ((4, 1), 'south', (4, 0), 0.0), ((4, 3), 'west', (4, 2), 0.0), ((1, 1), 'north', (1, 2), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((3, 0), 'east', (3, 0), 0.0), ((1, 0), 'north', (1, 1), 0.0), ((3, 0), 'south', (2, 0), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((3, 0), 'west', (2, 0), 0.0), ((1, 1), 'west', (0, 1), 0.0), ((3, 3), 'west', (3, 4), 0.0), ((1, 2), 'south', (1, 1), 0.0), ((3, 0), 'east', (4, 0), 0.0), ((4, 0), 'west', (4, 1), 0.0), ((4, 3), 'south', (4, 2), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((3, 3), 'south', (3, 2), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((3, 2), 'west', (2, 2), 0.0), ((3, 4), 'east', (3, 4), 0.0), ((1, 3), 'south', (0, 3), 0.0), ((1, 3), 'east', (1, 3), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((3, 4), 'north', (4, 4), 0.0), ((1, 2), 'north', (1, 3), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((1, 2), 'east', (2, 2), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((1, 1), 'north', (1, 2), 0.0), ((4, 2), 'north', (4, 3), 0.0), ((1, 3), 'east', (1, 3), 0.0), ((1, 0), 'north', (1, 1), 0.0), ((4, 4), 'east', (4, 4), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((4, 1), 'west', (4, 1), 0.0), ((4, 3), 'south', (4, 2), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((4, 3), 'south', (4, 2), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((4, 3), 'east', (4, 3), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((1, 2), 'south', (1, 1), 0.0), ((4, 0), 'north', (4, 1), 0.0), ((4, 0), 'south', (4, 0), 0.0), ((4, 0), 'south', (4, 0), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((4, 3), 'west', (3, 3), 0.0), ((4, 2), 'south', (4, 1), 0.0), ((2, 0), 'south', (3, 0), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((2, 0), 'north', (1, 0), 0.0), ((1, 2), 'east', (2, 2), 0.0), ((1, 2), 'east', (2, 2), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((3, 3), 'north', (3, 4), 0.0), ((4, 3), 'east', (4, 3), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((3, 3), 'south', (3, 2), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((1, 1), 'north', (1, 2), 0.0), ((3, 0), 'west', (2, 0), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((1, 3), 'east', (1, 4), 0.0), ((4, 4), 'north', (4, 4), 0.0), ((4, 3), 'north', (4, 4), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((1, 4), 'north', (1, 4), 0.0), ((4, 4), 'south', (4, 3), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((1, 1), 'north', (1, 2), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((4, 1), 'east', (4, 1), 0.0), ((1, 4), 'south', (1, 3), 0.0), ((1, 1), 'south', (1, 0), 0.0), ((4, 1), 'west', (4, 2), 0.0), ((1, 3), 'east', (1, 3), 0.0), ((3, 0), 'north', (3, 0), 0.0), ((3, 0), 'north', (3, 0), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((4, 1), 'west', (4, 1), 0.0), ((3, 4), 'south', (3, 3), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((1, 0), 'south', (1, 0), 0.0), ((2, 0), 'east', (3, 0), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((4, 1), 'east', (4, 1), 0.0), ((4, 3), 'west', (3, 3), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((1, 1), 'west', (0, 1), 0.0), ((1, 1), 'west', (0, 1), 0.0), ((1, 2), 'east', (2, 2), 0.0), ((4, 3), 'west', (3, 3), 0.0), ((3, 4), 'south', (3, 3), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((1, 2), 'south', (2, 2), 0.0), ((4, 0), 'east', (4, 0), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((4, 1), 'south', (4, 0), 0.0), ((4, 4), 'north', (4, 4), 0.0), ((4, 2), 'south', (4, 1), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((1, 0), 'south', (1, 0), 0.0), ((1, 0), 'north', (1, 1), 0.0), ((3, 3), 'south', (3, 2), 0.0), ((4, 2), 'east', (4, 2), 0.0), ((3, 4), 'south', (3, 3), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((3, 4), 'west', (2, 4), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((3, 4), 'east', (4, 4), 0.0), ((4, 4), 'north', (3, 4), 0.0), ((4, 4), 'north', (4, 4), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((4, 4), 'east', (4, 4), 0.0), ((4, 0), 'west', (3, 0), 0.0), ((1, 4), 'south', (1, 3), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((2, 0), 'west', (1, 0), 0.0), ((2, 0), 'south', (2, 0), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((4, 1), 'south', (4, 0), 0.0), ((4, 3), 'east', (4, 3), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((3, 0), 'north', (3, 0), 0.0), ((3, 3), 'west', (3, 4), 0.0), ((3, 4), 'north', (2, 4), 0.0), ((3, 0), 'east', (4, 0), 0.0), ((2, 0), 'west', (2, 0), 0.0), ((4, 3), 'north', (4, 4), 0.0), ((4, 3), 'south', (4, 2), 0.0), ((4, 3), 'south', (4, 2), 0.0), ((1, 1), 'south', (1, 0), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((2, 0), 'south', (2, 0), 0.0), ((4, 4), 'south', (4, 3), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((1, 4), 'north', (1, 4), 0.0), ((1, 1), 'north', (1, 2), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((4, 3), 'south', (4, 3), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((4, 3), 'west', (3, 3), 0.0), ((4, 0), 'north', (4, 1), 0.0), ((4, 0), 'east', (4, 0), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((3, 3), 'west', (3, 3), 0.0), ((4, 0), 'north', (4, 1), 0.0), ((4, 4), 'east', (4, 4), 0.0), ((1, 4), 'south', (1, 3), 0.0), ((4, 0), 'south', (4, 0), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((4, 3), 'west', (3, 3), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((1, 1), 'east', (1, 1), 0.0), ((1, 2), 'south', (1, 1), 0.0), ((4, 2), 'south', (4, 1), 0.0), ((1, 4), 'west', (0, 4), 0.0), ((4, 4), 'east', (4, 4), 0.0), ((2, 0), 'north', (2, 0), 0.0), ((3, 0), 'west', (3, 0), 0.0), ((2, 0), 'south', (2, 0), 0.0), ((1, 0), 'south', (1, 0), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((3, 3), 'west', (3, 2), 0.0), ((1, 0), 'north', (1, 1), 0.0), ((1, 0), 'east', (2, 0), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((1, 0), 'north', (0, 0), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((1, 0), 'north', (1, 1), 0.0), ((3, 3), 'north', (3, 4), 0.0), ((3, 4), 'south', (3, 3), 0.0), ((4, 4), 'south', (4, 3), 0.0), ((1, 2), 'east', (2, 2), 0.0), ((3, 2), 'east', (3, 2), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((2, 0), 'west', (1, 0), 0.0), ((1, 4), 'south', (1, 3), 0.0), ((4, 2), 'east', (4, 1), 0.0), ((3, 4), 'north', (3, 4), 0.0), ((4, 1), 'west', (4, 1), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((1, 2), 'east', (1, 3), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((4, 2), 'east', (4, 2), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((4, 0), 'south', (4, 0), 0.0), ((1, 2), 'west', (0, 2), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((1, 0), 'east', (2, 0), 0.0), ((1, 4), 'north', (1, 4), 0.0), ((1, 0), 'north', (1, 1), 0.0), ((4, 2), 'west', (3, 2), 0.0), ((4, 2), 'south', (4, 1), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((4, 0), 'north', (4, 1), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((3, 3), 'south', (3, 2), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((4, 4), 'west', (3, 4), 0.0), ((3, 3), 'west', (3, 3), 0.0), ((4, 1), 'west', (4, 1), 0.0), ((3, 3), 'north', (3, 4), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((1, 0), 'west', (0, 0), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((1, 4), 'west', (0, 4), 0.0), ((4, 3), 'west', (3, 3), 0.0), ((3, 2), 'north', (3, 3), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((1, 4), 'south', (0, 4), 0.0), ((1, 2), 'north', (1, 3), 0.0), ((1, 3), 'north', (1, 4), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((3, 2), 'east', (4, 2), 0.0), ((4, 4), 'west', (3, 4), 0.0), ((4, 3), 'west', (3, 3), 0.0), ((1, 3), 'west', (1, 4), 0.0), ((3, 0), 'north', (3, 0), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((4, 0), 'west', (4, 0), 0.0), ((1, 3), 'north', (1, 4), 0.0), ((4, 1), 'east', (4, 1), 0.0), ((1, 0), 'south', (1, 0), 0.0), ((1, 2), 'north', (1, 3), 0.0), ((4, 3), 'east', (4, 3), 0.0), ((3, 0), 'north', (2, 0), 0.0), ((3, 0), 'south', (3, 0), 0.0), ((1, 4), 'east', (2, 4), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((1, 1), 'north', (1, 2), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((1, 0), 'west', (1, 1), 0.0), ((4, 2), 'east', (4, 2), 0.0), ((4, 4), 'south', (3, 4), 0.0), ((4, 4), 'north', (3, 4), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((3, 0), 'south', (2, 0), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((4, 4), 'south', (4, 3), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((1, 2), 'west', (0, 2), 0.0), ((1, 0), 'north', (1, 1), 0.0), ((3, 3), 'south', (3, 2), 0.0), ((3, 2), 'east', (4, 2), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((3, 3), 'west', (3, 3), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((3, 2), 'west', (2, 2), 0.0), ((1, 2), 'south', (1, 1), 0.0), ((1, 1), 'north', (1, 2), 0.0), ((3, 4), 'west', (3, 4), 0.0), ((4, 1), 'west', (4, 2), 0.0), ((3, 4), 'south', (3, 3), 0.0), ((4, 1), 'east', (4, 1), 0.0), ((1, 3), 'east', (1, 3), 0.0), ((3, 2), 'north', (3, 3), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((4, 1), 'west', (4, 2), 0.0), ((4, 4), 'west', (3, 4), 0.0), ((1, 4), 'west', (0, 4), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((4, 1), 'north', (4, 2), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((4, 0), 'west', (3, 0), 0.0), ((3, 4), 'south', (3, 3), 0.0), ((1, 2), 'south', (1, 1), 0.0), ((4, 2), 'west', (4, 1), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((4, 3), 'north', (4, 4), 0.0), ((2, 0), 'south', (2, 0), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((4, 1), 'west', (4, 1), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((4, 3), 'north', (4, 4), 0.0), ((3, 0), 'north', (3, 0), 0.0), ((1, 2), 'east', (2, 2), 0.0), ((1, 2), 'north', (1, 3), 0.0), ((4, 0), 'south', (4, 0), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((2, 0), 'east', (3, 0), 0.0), ((1, 1), 'west', (0, 1), 0.0), ((1, 3), 'west', (0, 3), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((1, 0), 'east', (2, 0), 0.0), ((1, 1), 'south', (1, 0), 0.0), ((4, 3), 'east', (4, 3), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((3, 3), 'south', (3, 2), 0.0), ((1, 2), 'west', (0, 2), 0.0), ((1, 4), 'south', (1, 3), 0.0), ((1, 2), 'north', (1, 3), 0.0), ((4, 3), 'north', (4, 4), 0.0), ((3, 2), 'north', (3, 3), 0.0), ((4, 1), 'north', (4, 2), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((2, 0), 'north', (2, 0), 0.0), ((3, 3), 'west', (3, 3), 0.0), ((1, 0), 'north', (1, 1), 0.0), ((1, 1), 'south', (1, 0), 0.0), ((1, 2), 'west', (0, 2), 0.0), ((2, 0), 'north', (2, 0), 0.0), ((1, 1), 'north', (0, 1), 0.0), ((3, 3), 'west', (3, 2), 0.0), ((3, 4), 'west', (2, 4), 0.0), ((3, 2), 'north', (3, 3), 0.0), ((3, 0), 'west', (2, 0), 0.0), ((1, 2), 'north', (1, 3), 0.0), ((3, 0), 'west', (3, 0), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((4, 1), 'east', (4, 1), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((4, 1), 'east', (4, 1), 0.0), ((1, 3), 'east', (1, 3), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((1, 1), 'east', (1, 2), 0.0), ((1, 3), 'south', (1, 2), 0.0), ((4, 1), 'south', (4, 0), 0.0), ((4, 4), 'east', (4, 4), 0.0), ((1, 3), 'south', (1, 2), 0.0), ((1, 0), 'south', (1, 0), 0.0), ((1, 3), 'north', (1, 4), 0.0), ((1, 2), 'west', (0, 2), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((3, 0), 'east', (4, 0), 0.0), ((2, 0), 'west', (1, 0), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((1, 0), 'north', (1, 1), 0.0), ((2, 0), 'west', (1, 0), 0.0), ((1, 2), 'west', (0, 2), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((4, 3), 'east', (4, 3), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((2, 0), 'east', (3, 0), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((4, 1), 'east', (4, 1), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((1, 1), 'north', (1, 2), 0.0), ((1, 4), 'west', (0, 4), 0.0), ((1, 0), 'east', (2, 0), 0.0), ((3, 3), 'west', (3, 3), 0.0), ((2, 0), 'north', (2, 0), 0.0), ((1, 4), 'north', (1, 4), 0.0), ((3, 3), 'south', (3, 2), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((4, 2), 'west', (4, 3), 0.0), ((1, 2), 'west', (0, 2), 0.0), ((4, 1), 'west', (4, 1), 0.0), ((1, 2), 'north', (2, 2), 0.0), ((4, 2), 'west', (3, 2), 0.0), ((4, 2), 'west', (3, 2), 0.0), ((1, 4), 'north', (1, 4), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((1, 2), 'north', (1, 3), 0.0), ((3, 2), 'north', (3, 3), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((1, 1), 'east', (1, 1), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((3, 2), 'east', (4, 2), 0.0), ((3, 3), 'south', (3, 2), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((4, 0), 'east', (4, 0), 0.0), ((1, 2), 'east', (2, 2), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((4, 1), 'east', (4, 2), 0.0), ((1, 2), 'east', (2, 2), 0.0), ((4, 1), 'north', (4, 1), 0.0), ((1, 3), 'east', (1, 3), 0.0), ((1, 2), 'south', (2, 2), 0.0), ((4, 3), 'east', (4, 3), 0.0), ((3, 2), 'south', (3, 2), 0.0), ((1, 0), 'south', (0, 0), 0.0), ((4, 2), 'east', (4, 2), 0.0), ((1, 1), 'west', (0, 1), 0.0), ((4, 2), 'south', (4, 1), 0.0), ((1, 4), 'north', (1, 4), 0.0), ((4, 4), 'east', (4, 4), 0.0), ((3, 3), 'north', (3, 4), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((4, 4), 'south', (4, 3), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((1, 0), 'south', (1, 0), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((3, 0), 'west', (2, 0), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((1, 1), 'south', (1, 0), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((1, 2), 'east', (2, 2), 0.0), ((1, 3), 'west', (0, 3), 0.0), ((3, 4), 'south', (3, 3), 0.0), ((1, 2), 'south', (1, 1), 0.0), ((4, 1), 'west', (4, 2), 0.0), ((4, 2), 'south', (4, 1), 0.0), ((3, 4), 'east', (4, 4), 0.0), ((4, 2), 'south', (4, 1), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((1, 2), 'west', (0, 2), 0.0), ((4, 4), 'south', (4, 3), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((4, 0), 'west', (3, 0), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((4, 1), 'east', (4, 1), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((4, 4), 'east', (4, 4), 0.0), ((3, 3), 'north', (4, 3), 0.0), ((3, 0), 'north', (3, 0), 0.0), ((4, 1), 'east', (4, 1), 0.0), ((1, 3), 'north', (1, 4), 0.0), ((4, 2), 'south', (4, 2), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((4, 1), 'east', (4, 1), 0.0), ((1, 1), 'north', (1, 2), 0.0), ((1, 2), 'west', (0, 2), 0.0), ((3, 4), 'east', (4, 4), 0.0), ((4, 0), 'west', (3, 0), 0.0), ((4, 0), 'north', (3, 0), 0.0), ((4, 4), 'west', (3, 4), 0.0), ((3, 4), 'east', (4, 4), 0.0), ((4, 0), 'north', (4, 1), 0.0), ((1, 4), 'west', (1, 3), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((3, 2), 'east', (4, 2), 0.0), ((3, 4), 'south', (3, 3), 0.0), ((4, 0), 'west', (4, 1), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((3, 2), 'west', (2, 2), 0.0), ((4, 1), 'south', (4, 0), 0.0), ((4, 3), 'east', (4, 3), 0.0), ((3, 3), 'south', (3, 2), 0.0), ((4, 4), 'south', (3, 4), 0.0), ((4, 0), 'west', (3, 0), 0.0), ((4, 2), 'north', (4, 3), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((4, 1), 'east', (4, 1), 0.0), ((3, 2), 'west', (2, 2), 0.0), ((1, 0), 'west', (0, 0), 0.0), ((1, 3), 'south', (1, 2), 0.0), ((1, 0), 'north', (1, 1), 0.0), ((1, 0), 'east', (2, 0), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((4, 1), 'south', (4, 1), 0.0), ((3, 3), 'east', (4, 3), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((4, 4), 'north', (4, 4), 0.0), ((4, 0), 'west', (3, 0), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((4, 2), 'west', (3, 2), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((1, 3), 'east', (1, 3), 0.0), ((4, 3), 'south', (4, 2), 0.0), ((3, 3), 'west', (3, 2), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((1, 2), 'west', (0, 2), 0.0), ((4, 3), 'east', (4, 3), 0.0), ((4, 0), 'west', (3, 0), 0.0), ((4, 3), 'east', (4, 3), 0.0), ((4, 0), 'west', (3, 0), 0.0), ((2, 0), 'east', (3, 0), 0.0), ((4, 0), 'east', (4, 0), 0.0), ((1, 1), 'east', (1, 2), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((4, 2), 'east', (4, 3), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((2, 0), 'east', (3, 0), 0.0), ((4, 1), 'west', (4, 1), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((3, 3), 'west', (3, 3), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((3, 0), 'west', (2, 0), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((3, 3), 'south', (3, 2), 0.0), ((1, 4), 'west', (0, 4), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((4, 1), 'west', (4, 1), 0.0), ((1, 2), 'south', (1, 1), 0.0), ((4, 4), 'west', (3, 4), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((1, 2), 'north', (1, 3), 0.0), ((3, 3), 'east', (4, 3), 0.0), ((4, 4), 'north', (4, 4), 0.0), ((3, 4), 'north', (4, 4), 0.0), ((1, 4), 'west', (0, 4), 0.0), ((3, 3), 'north', (3, 4), 0.0), ((1, 2), 'north', (1, 3), 0.0), ((3, 0), 'west', (3, 0), 0.0), ((3, 4), 'north', (3, 4), 0.0), ((3, 0), 'north', (3, 0), 0.0), ((4, 1), 'north', (4, 2), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((3, 4), 'west', (2, 4), 0.0), ((4, 4), 'south', (3, 4), 0.0), ((1, 0), 'west', (0, 0), 0.0), ((4, 0), 'west', (3, 0), 0.0), ((1, 2), 'west', (0, 2), 0.0), ((4, 3), 'west', (3, 3), 0.0), ((3, 0), 'north', (3, 0), 0.0), ((1, 4), 'east', (2, 4), 0.0), ((1, 1), 'west', (0, 1), 0.0), ((1, 0), 'south', (1, 0), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((2, 0), 'west', (1, 0), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((4, 3), 'south', (3, 3), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((4, 2), 'west', (3, 2), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((4, 3), 'south', (4, 2), 0.0), ((1, 0), 'west', (0, 0), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((1, 1), 'north', (1, 2), 0.0), ((4, 3), 'east', (4, 3), 0.0), ((4, 4), 'east', (4, 4), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((4, 4), 'north', (4, 4), 0.0), ((4, 0), 'west', (3, 0), 0.0), ((4, 2), 'north', (4, 3), 0.0), ((2, 0), 'east', (3, 0), 0.0), ((3, 2), 'north', (4, 2), 0.0), ((1, 4), 'west', (0, 4), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((2, 0), 'west', (1, 0), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((4, 2), 'west', (3, 2), 0.0), ((1, 0), 'east', (2, 0), 0.0), ((4, 0), 'south', (4, 0), 0.0), ((4, 4), 'east', (4, 4), 0.0), ((4, 0), 'north', (4, 1), 0.0), ((4, 3), 'north', (4, 4), 0.0), ((4, 0), 'west', (3, 0), 0.0), ((4, 1), 'east', (4, 1), 0.0), ((4, 1), 'east', (4, 1), 0.0), ((1, 3), 'east', (1, 3), 0.0), ((4, 2), 'west', (3, 2), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((2, 0), 'south', (2, 0), 0.0), ((3, 3), 'south', (3, 2), 0.0), ((1, 1), 'south', (1, 0), 0.0), ((4, 3), 'north', (4, 4), 0.0), ((4, 2), 'south', (3, 2), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((1, 0), 'east', (2, 0), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((3, 3), 'north', (3, 4), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((2, 0), 'east', (2, 0), 0.0), ((3, 0), 'west', (2, 0), 0.0), ((4, 1), 'north', (4, 2), 0.0), ((4, 3), 'east', (4, 3), 0.0), ((2, 0), 'north', (2, 0), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((4, 1), 'west', (4, 1), 0.0), ((4, 1), 'south', (4, 0), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((2, 0), 'east', (3, 0), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((4, 0), 'east', (4, 0), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((4, 4), 'north', (4, 4), 0.0), ((3, 3), 'north', (3, 4), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((4, 3), 'west', (3, 3), 0.0), ((3, 3), 'west', (3, 3), 0.0), ((1, 3), 'east', (1, 3), 0.0), ((3, 4), 'north', (3, 4), 0.0), ((1, 1), 'north', (1, 2), 0.0), ((1, 3), 'east', (1, 3), 0.0), ((4, 4), 'west', (3, 4), 0.0), ((1, 0), 'west', (0, 0), 0.0), ((4, 0), 'west', (3, 0), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((1, 1), 'south', (1, 1), 0.0), ((3, 0), 'west', (3, 0), 0.0), ((1, 2), 'north', (1, 3), 0.0), ((1, 4), 'west', (1, 4), 0.0), ((4, 3), 'east', (4, 3), 0.0), ((4, 3), 'south', (4, 2), 0.0), ((1, 4), 'south', (2, 4), 0.0), ((3, 3), 'east', (4, 3), 0.0), ((1, 2), 'east', (2, 2), 0.0), ((1, 0), 'north', (2, 0), 0.0), ((1, 0), 'north', (1, 1), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((4, 4), 'north', (4, 4), 0.0), ((4, 3), 'west', (3, 3), 0.0), ((1, 2), 'north', (1, 3), 0.0), ((4, 3), 'north', (4, 4), 0.0), ((1, 0), 'south', (1, 0), 0.0), ((4, 0), 'north', (4, 1), 0.0), ((4, 4), 'south', (4, 3), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((4, 4), 'south', (4, 3), 0.0), ((3, 4), 'north', (3, 4), 0.0), ((3, 4), 'north', (4, 4), 0.0), ((4, 1), 'north', (4, 2), 0.0), ((2, 0), 'north', (2, 0), 0.0), ((1, 3), 'west', (0, 3), 0.0), ((4, 4), 'west', (4, 3), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((1, 0), 'west', (0, 0), 0.0), ((3, 2), 'west', (2, 2), 0.0), ((3, 2), 'west', (3, 2), 0.0), ((2, 0), 'east', (3, 0), 0.0), ((1, 0), 'east', (2, 0), 0.0), ((4, 4), 'west', (3, 4), 0.0), ((3, 3), 'east', (4, 3), 0.0), ((1, 0), 'north', (2, 0), 0.0), ((3, 3), 'south', (3, 2), 0.0), ((2, 0), 'east', (3, 0), 0.0), ((3, 2), 'east', (4, 2), 0.0), ((4, 4), 'south', (4, 3), 0.0), ((3, 2), 'west', (2, 2), 0.0), ((4, 1), 'east', (4, 1), 0.0), ((4, 0), 'east', (4, 0), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((1, 4), 'north', (1, 4), 0.0), ((4, 0), 'north', (4, 1), 0.0), ((1, 3), 'south', (0, 3), 0.0), ((3, 2), 'north', (3, 3), 0.0), ((2, 0), 'north', (2, 0), 0.0), ((1, 2), 'west', (0, 2), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((2, 0), 'west', (2, 0), 0.0), ((1, 3), 'south', (1, 2), 0.0), ((4, 4), 'south', (4, 3), 0.0), ((3, 3), 'south', (3, 3), 0.0), ((4, 2), 'east', (4, 2), 0.0), ((1, 1), 'east', (1, 2), 0.0), ((1, 3), 'east', (1, 3), 0.0), ((2, 0), 'west', (1, 0), 0.0), ((4, 1), 'north', (4, 2), 0.0), ((4, 1), 'west', (4, 0), 0.0), ((1, 0), 'south', (1, 0), 0.0), ((4, 2), 'west', (4, 1), 0.0), ((3, 3), 'west', (3, 3), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((1, 0), 'south', (1, 0), 0.0), ((2, 0), 'east', (3, 0), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((2, 0), 'west', (1, 0), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((4, 3), 'west', (4, 2), 0.0), ((3, 4), 'south', (3, 3), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((3, 2), 'west', (2, 2), 0.0), ((1, 2), 'west', (0, 2), 0.0), ((3, 3), 'north', (3, 4), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((4, 1), 'south', (4, 0), 0.0), ((3, 3), 'south', (3, 2), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((1, 3), 'east', (1, 3), 0.0), ((1, 1), 'north', (1, 1), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((1, 1), 'south', (1, 0), 0.0), ((2, 0), 'west', (1, 0), 0.0), ((1, 0), 'south', (2, 0), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((3, 4), 'west', (2, 4), 0.0), ((1, 3), 'east', (1, 3), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((3, 0), 'west', (2, 0), 0.0), ((3, 3), 'north', (3, 4), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((3, 2), 'west', (2, 2), 0.0), ((1, 0), 'west', (0, 0), 0.0), ((4, 3), 'north', (4, 4), 0.0), ((4, 4), 'south', (4, 3), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((3, 4), 'west', (2, 4), 0.0), ((3, 4), 'west', (2, 4), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((4, 3), 'west', (3, 3), 0.0), ((1, 1), 'west', (0, 1), 0.0), ((4, 1), 'west', (4, 1), 0.0), ((1, 1), 'west', (0, 1), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((4, 2), 'south', (4, 1), 0.0), ((4, 3), 'west', (4, 4), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((1, 0), 'north', (1, 1), 0.0), ((1, 3), 'east', (1, 3), 0.0), ((3, 0), 'north', (3, 0), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((1, 4), 'east', (2, 4), 0.0), ((4, 2), 'south', (4, 1), 0.0), ((1, 4), 'east', (2, 4), 0.0), ((1, 0), 'east', (1, 1), 0.0), ((3, 2), 'east', (4, 2), 0.0), ((4, 0), 'south', (4, 0), 0.0), ((1, 1), 'south', (1, 1), 0.0), ((3, 4), 'north', (3, 4), 0.0), ((1, 2), 'north', (1, 3), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((4, 1), 'north', (4, 1), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((4, 2), 'west', (3, 2), 0.0), ((3, 3), 'north', (3, 4), 0.0), ((4, 1), 'north', (4, 2), 0.0), ((1, 4), 'east', (1, 4), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((4, 2), 'north', (4, 3), 0.0), ((3, 2), 'west', (2, 2), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((4, 3), 'east', (4, 3), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((4, 2), 'east', (4, 2), 0.0), ((2, 0), 'east', (3, 0), 0.0), ((4, 1), 'west', (4, 1), 0.0), ((4, 2), 'north', (4, 3), 0.0), ((4, 0), 'west', (4, 0), 0.0), ((3, 3), 'north', (3, 4), 0.0), ((1, 2), 'south', (1, 1), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((2, 0), 'north', (2, 0), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((1, 4), 'east', (1, 3), 0.0), ((1, 2), 'west', (0, 2), 0.0), ((3, 2), 'west', (2, 2), 0.0), ((1, 3), 'west', (1, 2), 0.0), ((3, 4), 'north', (3, 4), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((4, 0), 'east', (4, 0), 0.0), ((1, 1), 'north', (1, 2), 0.0), ((4, 2), 'west', (3, 2), 0.0), ((1, 2), 'west', (0, 2), 0.0), ((1, 1), 'west', (0, 1), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((2, 0), 'south', (2, 0), 0.0), ((1, 3), 'south', (1, 2), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((3, 2), 'south', (3, 2), 0.0), ((3, 2), 'north', (3, 3), 0.0), ((1, 2), 'south', (1, 1), 0.0), ((1, 0), 'east', (2, 0), 0.0), ((1, 1), 'north', (1, 2), 0.0), ((4, 3), 'south', (4, 2), 0.0), ((4, 4), 'south', (3, 4), 0.0), ((2, 0), 'west', (1, 0), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((1, 0), 'south', (1, 0), 0.0), ((3, 2), 'west', (2, 2), 0.0), ((2, 0), 'north', (3, 0), 0.0), ((3, 3), 'north', (3, 4), 0.0), ((2, 0), 'west', (1, 0), 0.0), ((4, 1), 'south', (4, 0), 0.0), ((2, 0), 'south', (2, 0), 0.0), ((3, 3), 'west', (3, 3), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((4, 3), 'south', (4, 2), 0.0), ((2, 0), 'west', (2, 0), 0.0), ((4, 0), 'south', (4, 0), 0.0), ((3, 0), 'north', (4, 0), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((1, 1), 'north', (1, 2), 0.0), ((1, 1), 'south', (1, 1), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((4, 4), 'north', (4, 4), 0.0), ((1, 3), 'south', (1, 2), 0.0), ((3, 3), 'west', (3, 3), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((1, 4), 'west', (0, 4), 0.0), ((1, 3), 'west', (1, 4), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((1, 3), 'north', (1, 3), 0.0), ((3, 0), 'north', (3, 0), 0.0), ((3, 0), 'south', (3, 0), 0.0), ((1, 4), 'west', (0, 4), 0.0), ((4, 2), 'south', (4, 1), 0.0), ((1, 4), 'east', (2, 4), 0.0), ((4, 2), 'north', (4, 3), 0.0), ((3, 2), 'south', (3, 2), 0.0), ((1, 0), 'north', (1, 1), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((2, 0), 'east', (3, 0), 0.0), ((4, 3), 'south', (4, 2), 0.0), ((4, 4), 'west', (3, 4), 0.0), ((4, 0), 'south', (4, 0), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((3, 2), 'north', (3, 3), 0.0), ((1, 3), 'north', (1, 4), 0.0), ((4, 3), 'west', (3, 3), 0.0), ((4, 2), 'south', (4, 1), 0.0), ((1, 2), 'south', (1, 1), 0.0), ((3, 3), 'south', (3, 2), 0.0), ((4, 2), 'east', (4, 2), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((1, 0), 'west', (0, 0), 0.0), ((3, 4), 'east', (4, 4), 0.0), ((3, 4), 'north', (4, 4), 0.0), ((3, 3), 'north', (3, 3), 0.0), ((1, 2), 'west', (0, 2), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((1, 0), 'south', (1, 0), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((4, 2), 'north', (4, 2), 0.0), ((3, 0), 'west', (3, 0), 0.0), ((2, 0), 'north', (3, 0), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((2, 0), 'east', (3, 0), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((1, 0), 'east', (1, 1), 0.0), ((4, 1), 'west', (4, 1), 0.0), ((1, 1), 'east', (1, 1), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((4, 0), 'north', (4, 1), 0.0), ((1, 3), 'east', (1, 3), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((4, 2), 'north', (4, 3), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((1, 3), 'north', (0, 3), 0.0), ((4, 4), 'north', (3, 4), 0.0), ((3, 3), 'west', (3, 3), 0.0), ((1, 3), 'west', (0, 3), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((3, 0), 'south', (3, 0), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((3, 4), 'north', (3, 4), 0.0), ((4, 1), 'west', (4, 1), 0.0), ((3, 3), 'east', (4, 3), 0.0), ((3, 0), 'east', (4, 0), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((3, 2), 'north', (3, 3), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((3, 3), 'west', (3, 3), 0.0), ((4, 1), 'north', (4, 1), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((4, 0), 'east', (4, 0), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((1, 0), 'west', (1, 1), 0.0), ((4, 2), 'west', (3, 2), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((2, 0), 'north', (2, 0), 0.0), ((1, 2), 'south', (1, 1), 0.0), ((4, 3), 'west', (3, 3), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((1, 1), 'south', (1, 0), 0.0), ((1, 0), 'east', (1, 1), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((3, 0), 'west', (2, 0), 0.0), ((4, 0), 'north', (4, 1), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((1, 4), 'north', (1, 4), 0.0), ((4, 4), 'north', (4, 4), 0.0), ((4, 0), 'north', (4, 1), 0.0), ((1, 4), 'south', (1, 3), 0.0), ((1, 0), 'north', (1, 1), 0.0), ((1, 3), 'south', (1, 2), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((3, 3), 'east', (4, 3), 0.0), ((3, 4), 'south', (3, 3), 0.0), ((1, 3), 'east', (1, 3), 0.0), ((1, 2), 'north', (1, 3), 0.0), ((4, 2), 'south', (4, 2), 0.0), ((4, 2), 'north', (3, 2), 0.0), ((2, 0), 'north', (2, 0), 0.0), ((3, 3), 'east', (4, 3), 0.0), ((1, 4), 'north', (1, 4), 0.0), ((3, 0), 'east', (3, 0), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((3, 3), 'west', (3, 3), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((1, 1), 'south', (1, 0), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((3, 3), 'west', (3, 3), 0.0), ((1, 2), 'east', (2, 2), 0.0), ((3, 2), 'east', (4, 2), 0.0), ((4, 0), 'south', (3, 0), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((4, 0), 'south', (4, 0), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((1, 2), 'north', (1, 3), 0.0), ((1, 4), 'west', (0, 4), 0.0), ((1, 4), 'south', (1, 3), 0.0), ((1, 0), 'west', (0, 0), 0.0), ((4, 0), 'east', (4, 0), 0.0), ((2, 0), 'east', (3, 0), 0.0), ((1, 2), 'east', (2, 2), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((1, 2), 'west', (0, 2), 0.0), ((3, 4), 'east', (3, 4), 0.0), ((3, 2), 'west', (2, 2), 0.0), ((3, 0), 'west', (2, 0), 0.0), ((1, 1), 'south', (1, 1), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((4, 3), 'west', (3, 3), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((4, 2), 'east', (4, 2), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((4, 1), 'north', (4, 2), 0.0), ((1, 2), 'north', (1, 3), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((1, 3), 'west', (0, 3), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((1, 2), 'north', (1, 3), 0.0), ((4, 2), 'north', (4, 3), 0.0), ((1, 3), 'west', (0, 3), 0.0), ((1, 4), 'west', (0, 4), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((2, 0), 'south', (2, 0), 0.0), ((1, 1), 'east', (1, 1), 0.0), ((4, 0), 'south', (4, 0), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((1, 2), 'south', (1, 1), 0.0), ((4, 2), 'north', (4, 3), 0.0), ((2, 0), 'north', (2, 0), 0.0), ((3, 2), 'west', (3, 3), 0.0), ((3, 3), 'east', (4, 3), 0.0), ((3, 0), 'west', (2, 0), 0.0), ((4, 0), 'east', (4, 0), 0.0), ((1, 0), 'west', (0, 0), 0.0), ((3, 0), 'north', (3, 0), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((4, 4), 'south', (4, 3), 0.0), ((1, 4), 'south', (1, 3), 0.0), ((4, 2), 'south', (4, 1), 0.0), ((1, 4), 'east', (1, 3), 0.0), ((4, 4), 'south', (4, 3), 0.0), ((1, 1), 'west', (0, 1), 0.0), ((3, 3), 'south', (3, 2), 0.0), ((1, 3), 'west', (0, 3), 0.0), ((1, 3), 'south', (1, 2), 0.0), ((4, 3), 'north', (4, 4), 0.0), ((1, 1), 'south', (1, 0), 0.0), ((3, 0), 'north', (2, 0), 0.0), ((4, 3), 'east', (4, 3), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((4, 0), 'west', (3, 0), 0.0), ((1, 1), 'north', (1, 2), 0.0), ((4, 4), 'west', (3, 4), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((1, 4), 'north', (1, 4), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((1, 2), 'north', (1, 3), 0.0), ((4, 2), 'west', (4, 1), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((1, 2), 'east', (2, 2), 0.0), ((1, 0), 'east', (2, 0), 0.0), ((4, 3), 'north', (4, 4), 0.0), ((4, 4), 'south', (4, 3), 0.0), ((4, 0), 'west', (4, 1), 0.0), ((1, 1), 'east', (1, 1), 0.0), ((4, 2), 'east', (4, 2), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((1, 4), 'north', (1, 4), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((4, 0), 'west', (3, 0), 0.0), ((3, 2), 'north', (3, 3), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((4, 3), 'east', (4, 3), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((1, 3), 'west', (0, 3), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((3, 4), 'east', (4, 4), 0.0), ((4, 0), 'east', (4, 0), 0.0), ((1, 1), 'south', (1, 0), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((1, 2), 'north', (0, 2), 0.0), ((4, 0), 'north', (4, 1), 0.0), ((4, 2), 'south', (4, 1), 0.0), ((2, 0), 'west', (1, 0), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((1, 4), 'west', (0, 4), 0.0), ((4, 4), 'north', (4, 4), 0.0), ((4, 1), 'west', (4, 2), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((1, 2), 'west', (0, 2), 0.0), ((3, 0), 'north', (3, 0), 0.0), ((3, 4), 'west', (3, 3), 0.0), ((4, 0), 'south', (3, 0), 0.0), ((1, 0), 'north', (1, 1), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((4, 2), 'east', (4, 2), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((1, 3), 'west', (0, 3), 0.0), ((3, 0), 'south', (4, 0), 0.0), ((4, 2), 'south', (4, 1), 0.0), ((1, 0), 'east', (2, 0), 0.0), ((4, 3), 'west', (3, 3), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((4, 0), 'north', (4, 1), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((3, 0), 'west', (3, 0), 0.0), ((1, 2), 'east', (2, 2), 0.0), ((3, 0), 'south', (3, 0), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((1, 4), 'west', (0, 4), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((1, 2), 'west', (0, 2), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((3, 4), 'south', (3, 3), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((3, 3), 'north', (3, 4), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((1, 4), 'north', (1, 4), 0.0), ((3, 2), 'north', (3, 3), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((3, 0), 'east', (3, 0), 0.0), ((3, 4), 'east', (4, 4), 0.0), ((1, 0), 'east', (2, 0), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((3, 4), 'north', (3, 4), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((4, 4), 'west', (3, 4), 0.0), ((4, 3), 'north', (3, 3), 0.0), ((4, 3), 'south', (4, 2), 0.0), ((1, 0), 'north', (1, 1), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((1, 0), 'west', (0, 0), 0.0), ((3, 0), 'south', (3, 0), 0.0), ((3, 2), 'south', (3, 2), 0.0), ((1, 4), 'north', (1, 4), 0.0), ((4, 3), 'south', (4, 2), 0.0), ((1, 1), 'south', (1, 0), 0.0), ((2, 0), 'south', (3, 0), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((1, 1), 'south', (1, 0), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((1, 3), 'west', (0, 3), 0.0), ((3, 0), 'south', (3, 0), 0.0), ((4, 2), 'south', (4, 1), 0.0), ((4, 2), 'west', (3, 2), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((4, 3), 'north', (4, 4), 0.0), ((3, 4), 'east', (4, 4), 0.0), ((1, 0), 'east', (2, 0), 0.0), ((4, 1), 'east', (4, 1), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((3, 4), 'east', (4, 4), 0.0), ((3, 2), 'south', (3, 2), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((1, 0), 'south', (1, 0), 0.0), ((1, 0), 'west', (0, 0), 0.0), ((4, 0), 'east', (4, 0), 0.0), ((1, 1), 'west', (0, 1), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((1, 4), 'south', (1, 3), 0.0), ((1, 4), 'west', (0, 4), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((1, 1), 'west', (0, 1), 0.0), ((1, 3), 'east', (1, 3), 0.0), ((4, 0), 'south', (4, 0), 0.0), ((1, 1), 'south', (1, 0), 0.0), ((3, 0), 'east', (3, 0), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((3, 0), 'west', (3, 0), 0.0), ((4, 0), 'east', (4, 0), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((3, 4), 'north', (2, 4), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((3, 0), 'east', (3, 0), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((3, 3), 'south', (3, 2), 0.0), ((4, 2), 'east', (4, 2), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((4, 2), 'east', (4, 2), 0.0), ((3, 0), 'south', (4, 0), 0.0), ((4, 4), 'north', (3, 4), 0.0), ((3, 0), 'west', (2, 0), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((4, 3), 'south', (4, 3), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((4, 1), 'north', (4, 2), 0.0), ((4, 4), 'east', (4, 4), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((1, 4), 'east', (2, 4), 0.0), ((4, 0), 'west', (4, 1), 0.0), ((1, 2), 'south', (1, 1), 0.0), ((1, 4), 'north', (1, 4), 0.0), ((1, 2), 'east', (2, 2), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((3, 0), 'west', (2, 0), 0.0), ((1, 1), 'east', (1, 1), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((4, 0), 'north', (4, 1), 0.0), ((4, 2), 'north', (3, 2), 0.0), ((3, 3), 'west', (3, 3), 0.0), ((1, 4), 'west', (0, 4), 0.0), ((3, 4), 'north', (3, 4), 0.0), ((4, 4), 'east', (4, 4), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((1, 0), 'east', (2, 0), 0.0), ((4, 3), 'north', (4, 4), 0.0), ((3, 0), 'west', (2, 0), 0.0), ((4, 1), 'north', (4, 1), 0.0), ((4, 2), 'east', (4, 2), 0.0), ((1, 4), 'west', (0, 4), 0.0), ((1, 0), 'south', (2, 0), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((3, 3), 'north', (3, 4), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((2, 0), 'north', (1, 0), 0.0), ((4, 0), 'north', (4, 1), 0.0), ((4, 3), 'west', (3, 3), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((4, 3), 'south', (4, 2), 0.0), ((3, 4), 'north', (4, 4), 0.0), ((1, 4), 'east', (1, 4), 0.0), ((1, 1), 'west', (0, 1), 0.0), ((1, 3), 'south', (1, 2), 0.0), ((1, 0), 'west', (0, 0), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((3, 0), 'west', (2, 0), 0.0), ((1, 1), 'west', (0, 1), 0.0), ((3, 2), 'east', (4, 2), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((1, 3), 'south', (1, 2), 0.0), ((4, 1), 'south', (4, 0), 0.0), ((1, 4), 'north', (1, 4), 0.0), ((1, 2), 'north', (1, 3), 0.0), ((1, 0), 'east', (2, 0), 0.0), ((3, 4), 'west', (2, 4), 0.0), ((1, 4), 'south', (0, 4), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((4, 1), 'north', (4, 1), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((4, 2), 'west', (3, 2), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((4, 3), 'south', (3, 3), 0.0), ((1, 4), 'south', (1, 3), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((1, 4), 'north', (1, 4), 0.0), ((1, 4), 'east', (2, 4), 0.0), ((1, 0), 'west', (0, 0), 0.0), ((4, 1), 'north', (4, 2), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((1, 4), 'east', (2, 4), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((4, 0), 'north', (4, 1), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((1, 3), 'north', (1, 4), 0.0), ((3, 0), 'west', (2, 0), 0.0), ((3, 2), 'north', (2, 2), 0.0), ((1, 3), 'south', (1, 3), 0.0), ((1, 1), 'north', (1, 2), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((3, 2), 'north', (3, 3), 0.0), ((1, 3), 'north', (1, 4), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((2, 0), 'south', (2, 0), 0.0), ((1, 2), 'east', (1, 3), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((3, 3), 'west', (3, 4), 0.0), ((3, 0), 'west', (2, 0), 0.0), ((3, 2), 'north', (3, 3), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((1, 1), 'west', (0, 1), 0.0), ((4, 4), 'west', (3, 4), 0.0), ((1, 0), 'east', (2, 0), 0.0), ((4, 4), 'north', (4, 4), 0.0), ((1, 4), 'west', (1, 3), 0.0), ((4, 0), 'north', (4, 1), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((1, 2), 'east', (2, 2), 0.0), ((3, 0), 'south', (3, 0), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((3, 3), 'east', (4, 3), 0.0), ((3, 0), 'north', (3, 0), 0.0), ((1, 0), 'east', (2, 0), 0.0), ((4, 1), 'south', (4, 0), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((4, 4), 'south', (4, 3), 0.0), ((4, 4), 'west', (3, 4), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((1, 2), 'north', (2, 2), 0.0), ((1, 0), 'east', (2, 0), 0.0), ((1, 2), 'north', (1, 3), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((4, 3), 'north', (4, 4), 0.0), ((4, 2), 'east', (4, 1), 0.0), ((4, 0), 'west', (3, 0), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((2, 0), 'south', (2, 0), 0.0), ((1, 0), 'west', (1, 1), 0.0), ((2, 0), 'south', (2, 0), 0.0), ((1, 2), 'west', (0, 2), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((1, 4), 'south', (1, 3), 0.0), ((1, 4), 'east', (2, 4), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((3, 4), 'north', (3, 4), 0.0), ((4, 2), 'west', (3, 2), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((1, 0), 'east', (2, 0), 0.0), ((1, 2), 'east', (2, 2), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((1, 2), 'east', (1, 1), 0.0), ((1, 2), 'west', (0, 2), 0.0), ((1, 3), 'west', (0, 3), 0.0), ((1, 4), 'south', (1, 3), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((3, 3), 'south', (3, 2), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((1, 2), 'east', (2, 2), 0.0), ((4, 4), 'south', (4, 3), 0.0), ((3, 4), 'south', (3, 3), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((1, 4), 'east', (2, 4), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((3, 2), 'east', (4, 2), 0.0), ((4, 1), 'south', (4, 0), 0.0), ((3, 0), 'south', (3, 0), 0.0), ((1, 4), 'north', (1, 4), 0.0), ((4, 0), 'east', (4, 0), 0.0), ((2, 0), 'north', (2, 0), 0.0), ((4, 0), 'north', (4, 1), 0.0), ((1, 1), 'west', (1, 0), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((4, 4), 'south', (4, 3), 0.0), ((3, 0), 'west', (2, 0), 0.0), ((1, 1), 'west', (0, 1), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((1, 4), 'west', (0, 4), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((3, 2), 'north', (2, 2), 0.0), ((3, 2), 'east', (4, 2), 0.0), ((4, 4), 'west', (3, 4), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((4, 3), 'north', (4, 4), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((3, 3), 'south', (3, 2), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((3, 3), 'west', (3, 3), 0.0), ((3, 2), 'west', (2, 2), 0.0), ((1, 0), 'east', (2, 0), 0.0), ((3, 4), 'west', (2, 4), 0.0), ((4, 1), 'west', (4, 1), 0.0), ((2, 0), 'north', (2, 0), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((1, 2), 'north', (0, 2), 0.0), ((3, 4), 'east', (4, 4), 0.0), ((1, 0), 'east', (2, 0), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((4, 3), 'east', (4, 3), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((4, 1), 'north', (4, 2), 0.0), ((2, 0), 'north', (2, 0), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((4, 3), 'west', (3, 3), 0.0), ((3, 3), 'north', (3, 4), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((4, 2), 'south', (3, 2), 0.0), ((3, 4), 'west', (2, 4), 0.0), ((2, 0), 'south', (2, 0), 0.0), ((1, 4), 'east', (2, 4), 0.0), ((1, 3), 'west', (1, 2), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((1, 1), 'east', (1, 1), 0.0), ((4, 1), 'south', (4, 1), 0.0), ((4, 3), 'west', (4, 2), 0.0), ((4, 2), 'south', (4, 2), 0.0), ((1, 3), 'west', (0, 3), 0.0), ((3, 0), 'east', (4, 0), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((4, 1), 'east', (4, 1), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((4, 4), 'east', (4, 4), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((1, 4), 'west', (1, 4), 0.0), ((1, 2), 'south', (1, 1), 0.0), ((3, 2), 'north', (3, 3), 0.0), ((4, 3), 'north', (4, 4), 0.0), ((3, 0), 'south', (3, 0), 0.0), ((4, 4), 'west', (3, 4), 0.0), ((4, 0), 'north', (4, 1), 0.0), ((1, 1), 'east', (1, 2), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((3, 2), 'west', (2, 2), 0.0), ((3, 2), 'south', (2, 2), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((3, 3), 'west', (3, 3), 0.0), ((4, 3), 'west', (3, 3), 0.0), ((1, 0), 'east', (1, 1), 0.0), ((1, 3), 'east', (1, 3), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((1, 2), 'south', (1, 1), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((1, 1), 'south', (1, 0), 0.0), ((1, 4), 'north', (1, 4), 0.0), ((4, 3), 'west', (3, 3), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((1, 4), 'east', (1, 4), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((1, 2), 'south', (1, 1), 0.0), ((3, 2), 'north', (4, 2), 0.0), ((1, 4), 'west', (0, 4), 0.0), ((3, 2), 'south', (4, 2), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((4, 3), 'east', (4, 3), 0.0), ((3, 4), 'south', (4, 4), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((3, 2), 'west', (2, 2), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((1, 4), 'west', (1, 3), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((4, 2), 'north', (4, 3), 0.0), ((3, 3), 'east', (4, 3), 0.0), ((4, 3), 'east', (4, 2), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((2, 0), 'west', (2, 0), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((3, 0), 'west', (2, 0), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((1, 1), 'east', (1, 2), 0.0), ((3, 2), 'east', (4, 2), 0.0), ((1, 2), 'north', (1, 3), 0.0), ((3, 2), 'north', (3, 3), 0.0), ((4, 0), 'north', (4, 1), 0.0), ((3, 0), 'north', (4, 0), 0.0), ((1, 2), 'south', (1, 1), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((3, 3), 'east', (3, 2), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((1, 4), 'south', (0, 4), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((3, 2), 'east', (4, 2), 0.0), ((4, 2), 'east', (4, 1), 0.0), ((1, 3), 'east', (1, 3), 0.0), ((4, 0), 'east', (4, 1), 0.0), ((4, 4), 'east', (4, 4), 0.0), ((3, 3), 'west', (3, 3), 0.0), ((1, 3), 'west', (0, 3), 0.0), ((1, 3), 'east', (1, 3), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((4, 3), 'south', (4, 2), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((1, 4), 'east', (1, 3), 0.0), ((4, 1), 'north', (4, 2), 0.0), ((4, 1), 'east', (4, 2), 0.0), ((3, 2), 'east', (3, 2), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((4, 4), 'south', (4, 3), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((1, 4), 'west', (1, 3), 0.0), ((4, 4), 'south', (4, 3), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((3, 4), 'west', (2, 4), 0.0), ((4, 2), 'south', (4, 1), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((3, 4), 'west', (3, 4), 0.0), ((1, 2), 'east', (2, 2), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((2, 0), 'west', (1, 0), 0.0), ((1, 0), 'north', (1, 1), 0.0), ((3, 3), 'north', (3, 4), 0.0), ((4, 0), 'west', (3, 0), 0.0), ((3, 0), 'east', (4, 0), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((3, 2), 'south', (3, 2), 0.0), ((3, 4), 'north', (3, 4), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((3, 3), 'west', (3, 3), 0.0), ((4, 1), 'south', (4, 0), 0.0), ((3, 0), 'west', (2, 0), 0.0), ((1, 1), 'north', (1, 1), 0.0), ((1, 4), 'south', (1, 3), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((1, 4), 'west', (1, 3), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((1, 0), 'east', (2, 0), 0.0), ((4, 2), 'east', (4, 2), 0.0), ((1, 4), 'east', (2, 4), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((3, 4), 'east', (4, 4), 0.0), ((4, 2), 'east', (4, 2), 0.0), ((4, 0), 'west', (3, 0), 0.0), ((3, 0), 'east', (4, 0), 0.0), ((4, 0), 'east', (4, 0), 0.0), ((4, 3), 'west', (3, 3), 0.0), ((1, 2), 'west', (0, 2), 0.0), ((2, 0), 'north', (2, 0), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((4, 4), 'east', (4, 4), 0.0), ((3, 3), 'north', (3, 4), 0.0), ((3, 3), 'east', (3, 4), 0.0), ((3, 0), 'south', (2, 0), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((4, 4), 'north', (4, 4), 0.0), ((4, 3), 'east', (4, 3), 0.0), ((1, 4), 'east', (2, 4), 0.0), ((2, 0), 'west', (1, 0), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((4, 1), 'north', (4, 2), 0.0), ((4, 2), 'north', (4, 3), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((4, 0), 'west', (4, 1), 0.0), ((4, 4), 'north', (4, 4), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((1, 3), 'south', (1, 2), 0.0), ((1, 3), 'north', (1, 4), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((3, 4), 'south', (3, 3), 0.0), ((3, 4), 'north', (3, 4), 0.0), ((3, 2), 'west', (2, 2), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((1, 3), 'west', (1, 4), 0.0), ((4, 4), 'west', (3, 4), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((1, 2), 'south', (1, 1), 0.0), ((3, 3), 'north', (3, 3), 0.0), ((4, 3), 'north', (4, 4), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((2, 0), 'east', (3, 0), 0.0), ((4, 2), 'west', (3, 2), 0.0), ((3, 2), 'east', (4, 2), 0.0), ((2, 0), 'east', (2, 0), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((4, 2), 'north', (4, 3), 0.0), ((3, 2), 'east', (4, 2), 0.0), ((4, 4), 'east', (4, 4), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((4, 2), 'north', (4, 3), 0.0), ((1, 1), 'east', (1, 0), 0.0), ((4, 4), 'south', (4, 3), 0.0), ((1, 0), 'west', (0, 0), 0.0), ((3, 4), 'north', (4, 4), 0.0), ((4, 1), 'east', (4, 1), 0.0), ((3, 0), 'north', (3, 0), 0.0), ((4, 0), 'north', (4, 1), 0.0), ((4, 0), 'east', (4, 0), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((3, 2), 'east', (4, 2), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((4, 4), 'west', (4, 3), 0.0), ((3, 3), 'west', (3, 3), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((1, 0), 'west', (0, 0), 0.0), ((3, 4), 'south', (3, 3), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((4, 0), 'west', (3, 0), 0.0), ((4, 1), 'north', (4, 1), 0.0), ((3, 4), 'east', (4, 4), 0.0), ((1, 1), 'west', (0, 1), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((1, 3), 'east', (1, 3), 0.0), ((4, 2), 'east', (4, 2), 0.0), ((4, 1), 'east', (4, 0), 0.0), ((3, 3), 'north', (3, 4), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((4, 0), 'south', (4, 0), 0.0), ((1, 4), 'west', (0, 4), 0.0), ((3, 2), 'west', (2, 2), 0.0), ((4, 2), 'south', (4, 1), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((2, 0), 'west', (1, 0), 0.0), ((3, 2), 'east', (4, 2), 0.0), ((3, 3), 'east', (4, 3), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((1, 4), 'west', (0, 4), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((2, 0), 'north', (2, 0), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((3, 3), 'south', (3, 2), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((4, 4), 'west', (3, 4), 0.0), ((1, 4), 'east', (2, 4), 0.0), ((4, 2), 'north', (4, 3), 0.0), ((1, 3), 'east', (1, 3), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((4, 0), 'south', (4, 0), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((4, 2), 'east', (4, 2), 0.0), ((1, 1), 'west', (0, 1), 0.0), ((3, 0), 'west', (2, 0), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((3, 4), 'north', (2, 4), 0.0), ((4, 1), 'east', (4, 1), 0.0), ((3, 3), 'west', (3, 3), 0.0), ((3, 3), 'west', (3, 3), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((4, 3), 'south', (4, 2), 0.0), ((2, 0), 'west', (2, 0), 0.0), ((1, 3), 'west', (0, 3), 0.0), ((3, 2), 'north', (3, 3), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((1, 3), 'south', (1, 3), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((4, 0), 'north', (4, 1), 0.0), ((4, 0), 'south', (4, 0), 0.0), ((3, 0), 'south', (3, 0), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((3, 3), 'west', (3, 3), 0.0), ((1, 0), 'east', (2, 0), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((4, 3), 'west', (3, 3), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((1, 3), 'east', (1, 3), 0.0), ((4, 0), 'north', (4, 0), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((1, 2), 'south', (1, 1), 0.0), ((4, 1), 'west', (4, 1), 0.0), ((1, 4), 'north', (1, 4), 0.0), ((4, 3), 'west', (3, 3), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((4, 0), 'east', (4, 1), 0.0), ((3, 2), 'east', (4, 2), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((1, 4), 'west', (0, 4), 0.0), ((3, 4), 'west', (2, 4), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((3, 4), 'south', (2, 4), 0.0), ((1, 2), 'east', (2, 2), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((1, 4), 'west', (0, 4), 0.0), ((1, 1), 'west', (0, 1), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((1, 1), 'west', (0, 1), 0.0), ((4, 2), 'north', (4, 2), 0.0), ((3, 3), 'west', (3, 3), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((2, 0), 'east', (3, 0), 0.0), ((3, 4), 'south', (4, 4), 0.0), ((3, 0), 'east', (4, 0), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((4, 1), 'east', (4, 1), 0.0), ((4, 4), 'west', (4, 3), 0.0), ((3, 0), 'east', (4, 0), 0.0), ((3, 2), 'south', (3, 2), 0.0), ((3, 3), 'east', (3, 4), 0.0), ((3, 0), 'south', (3, 0), 0.0), ((4, 0), 'west', (3, 0), 0.0), ((1, 1), 'east', (1, 1), 0.0), ((4, 4), 'south', (4, 3), 0.0), ((1, 3), 'south', (1, 2), 0.0), ((1, 2), 'north', (1, 3), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((4, 2), 'east', (4, 2), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((4, 3), 'west', (3, 3), 0.0), ((1, 2), 'north', (0, 2), 0.0), ((1, 3), 'west', (0, 3), 0.0), ((4, 4), 'north', (4, 4), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((1, 3), 'south', (1, 2), 0.0), ((4, 2), 'south', (4, 1), 0.0), ((1, 1), 'south', (0, 1), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((4, 2), 'south', (4, 1), 0.0), ((1, 3), 'north', (1, 4), 0.0), ((1, 2), 'south', (1, 1), 0.0), ((4, 4), 'east', (4, 4), 0.0), ((1, 2), 'west', (0, 2), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((2, 0), 'west', (1, 0), 0.0), ((1, 2), 'east', (2, 2), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((1, 0), 'west', (0, 0), 0.0), ((3, 0), 'east', (4, 0), 0.0), ((1, 4), 'north', (0, 4), 0.0), ((1, 3), 'east', (1, 3), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((3, 3), 'west', (3, 3), 0.0), ((1, 1), 'east', (1, 2), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((3, 4), 'east', (3, 3), 0.0), ((1, 2), 'north', (1, 3), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((4, 0), 'north', (4, 1), 0.0), ((4, 3), 'north', (4, 4), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((1, 4), 'north', (1, 4), 0.0), ((4, 0), 'south', (4, 0), 0.0), ((4, 0), 'east', (4, 0), 0.0), ((3, 4), 'east', (3, 3), 0.0), ((4, 2), 'west', (4, 3), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((3, 0), 'south', (4, 0), 0.0), ((3, 3), 'west', (3, 3), 0.0), ((3, 0), 'north', (3, 0), 0.0), ((4, 4), 'north', (4, 4), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((1, 4), 'north', (2, 4), 0.0), ((4, 3), 'west', (3, 3), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((2, 0), 'north', (2, 0), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((3, 0), 'south', (3, 0), 0.0), ((4, 2), 'south', (4, 1), 0.0), ((1, 3), 'west', (1, 4), 0.0), ((4, 0), 'north', (4, 1), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((1, 2), 'east', (2, 2), 0.0), ((3, 0), 'south', (3, 0), 0.0), ((1, 3), 'south', (1, 2), 0.0), ((2, 0), 'south', (1, 0), 0.0), ((3, 3), 'east', (3, 4), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((1, 1), 'east', (1, 1), 0.0), ((1, 4), 'north', (1, 4), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((3, 0), 'west', (2, 0), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((4, 1), 'north', (4, 2), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((3, 4), 'south', (3, 3), 0.0), ((4, 3), 'south', (4, 2), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((4, 1), 'east', (4, 2), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((4, 2), 'south', (4, 1), 0.0), ((1, 2), 'north', (1, 3), 0.0), ((3, 0), 'north', (3, 0), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((4, 4), 'north', (4, 4), 0.0), ((4, 1), 'east', (4, 1), 0.0), ((1, 4), 'south', (1, 3), 0.0), ((3, 2), 'east', (3, 3), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((1, 2), 'north', (1, 3), 0.0), ((1, 2), 'east', (2, 2), 0.0), ((4, 3), 'west', (3, 3), 0.0), ((2, 0), 'north', (2, 0), 0.0), ((4, 0), 'north', (4, 1), 0.0), ((3, 4), 'north', (3, 4), 0.0), ((4, 1), 'east', (4, 1), 0.0), ((2, 0), 'west', (1, 0), 0.0), ((4, 1), 'west', (4, 1), 0.0), ((1, 3), 'west', (0, 3), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((1, 2), 'south', (1, 1), 0.0), ((4, 2), 'south', (4, 1), 0.0), ((3, 2), 'south', (2, 2), 0.0), ((4, 0), 'east', (4, 0), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((4, 3), 'east', (4, 4), 0.0), ((4, 3), 'north', (4, 4), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((4, 1), 'north', (4, 2), 0.0), ((4, 0), 'east', (4, 0), 0.0), ((4, 1), 'west', (4, 1), 0.0), ((1, 1), 'east', (1, 1), 0.0), ((1, 3), 'east', (1, 3), 0.0), ((1, 2), 'south', (1, 1), 0.0), ((4, 2), 'south', (4, 1), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((4, 2), 'north', (4, 3), 0.0), ((3, 3), 'south', (3, 2), 0.0), ((1, 3), 'west', (1, 4), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((4, 0), 'north', (4, 1), 0.0), ((4, 2), 'east', (4, 2), 0.0), ((2, 0), 'west', (1, 0), 0.0), ((4, 4), 'south', (4, 3), 0.0), ((4, 0), 'east', (4, 0), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((3, 3), 'south', (3, 2), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((1, 3), 'east', (1, 3), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((3, 3), 'west', (3, 3), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((1, 1), 'south', (1, 1), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((1, 4), 'west', (1, 3), 0.0), ((1, 1), 'north', (1, 2), 0.0), ((1, 1), 'west', (0, 1), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((4, 3), 'east', (4, 4), 0.0), ((4, 1), 'south', (4, 0), 0.0), ((3, 2), 'east', (4, 2), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((1, 1), 'east', (1, 1), 0.0), ((2, 0), 'east', (2, 0), 0.0), ((3, 0), 'south', (3, 0), 0.0), ((3, 0), 'east', (3, 0), 0.0), ((1, 3), 'south', (1, 2), 0.0), ((4, 3), 'east', (4, 2), 0.0), ((1, 4), 'south', (1, 3), 0.0), ((4, 1), 'west', (4, 1), 0.0), ((1, 1), 'north', (1, 2), 0.0), ((4, 4), 'west', (4, 4), 0.0), ((4, 1), 'east', (4, 1), 0.0), ((3, 3), 'north', (3, 3), 0.0), ((4, 4), 'north', (4, 4), 0.0), ((1, 2), 'north', (1, 3), 0.0), ((1, 2), 'north', (1, 3), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((4, 0), 'north', (3, 0), 0.0), ((3, 2), 'north', (3, 3), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((1, 2), 'west', (0, 2), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((4, 4), 'east', (4, 4), 0.0), ((3, 3), 'east', (4, 3), 0.0), ((4, 0), 'east', (4, 0), 0.0), ((1, 2), 'west', (0, 2), 0.0), ((3, 0), 'south', (3, 0), 0.0), ((1, 2), 'east', (2, 2), 0.0), ((1, 4), 'south', (1, 3), 0.0), ((3, 3), 'east', (4, 3), 0.0), ((1, 1), 'west', (0, 1), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((4, 0), 'south', (4, 0), 0.0), ((4, 1), 'north', (4, 2), 0.0), ((3, 0), 'west', (2, 0), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((3, 4), 'west', (2, 4), 0.0), ((1, 2), 'west', (0, 2), 0.0), ((4, 3), 'east', (4, 3), 0.0), ((1, 2), 'north', (1, 3), 0.0), ((1, 2), 'south', (1, 1), 0.0), ((1, 4), 'south', (1, 3), 0.0), ((1, 1), 'west', (0, 1), 0.0), ((3, 3), 'south', (3, 2), 0.0), ((1, 0), 'east', (2, 0), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((3, 4), 'south', (3, 3), 0.0), ((4, 0), 'north', (4, 1), 0.0), ((4, 4), 'east', (4, 4), 0.0), ((3, 4), 'east', (4, 4), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((4, 2), 'south', (4, 1), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((1, 2), 'south', (1, 1), 0.0), ((4, 0), 'north', (3, 0), 0.0), ((1, 3), 'north', (1, 4), 0.0), ((3, 2), 'east', (4, 2), 0.0), ((4, 1), 'east', (4, 1), 0.0), ((3, 4), 'north', (3, 4), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((4, 2), 'west', (3, 2), 0.0), ((4, 1), 'east', (4, 1), 0.0), ((4, 2), 'east', (4, 2), 0.0), ((4, 3), 'east', (4, 2), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((4, 4), 'east', (4, 4), 0.0), ((1, 0), 'north', (2, 0), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((1, 1), 'west', (0, 1), 0.0), ((4, 4), 'south', (4, 3), 0.0), ((2, 0), 'west', (1, 0), 0.0), ((3, 4), 'south', (3, 3), 0.0), ((3, 2), 'north', (3, 3), 0.0), ((4, 0), 'east', (4, 0), 0.0), ((1, 0), 'south', (0, 0), 0.0), ((1, 2), 'west', (0, 2), 0.0), ((1, 2), 'east', (2, 2), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((3, 0), 'north', (3, 0), 0.0), ((1, 3), 'east', (1, 3), 0.0), ((1, 4), 'east', (2, 4), 0.0), ((1, 0), 'west', (0, 0), 0.0), ((3, 3), 'south', (3, 2), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((3, 4), 'south', (3, 3), 0.0), ((4, 3), 'south', (4, 3), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((4, 2), 'north', (4, 3), 0.0), ((1, 4), 'west', (0, 4), 0.0), ((4, 2), 'north', (4, 3), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((1, 3), 'west', (0, 3), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((4, 1), 'west', (4, 1), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((4, 2), 'east', (4, 2), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((3, 2), 'north', (3, 3), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((4, 3), 'west', (4, 2), 0.0), ((1, 1), 'north', (1, 2), 0.0), ((4, 4), 'north', (4, 4), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((3, 2), 'north', (3, 3), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((3, 2), 'south', (3, 2), 0.0), ((3, 2), 'west', (2, 2), 0.0), ((4, 1), 'north', (4, 2), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((3, 4), 'north', (4, 4), 0.0), ((3, 4), 'north', (3, 4), 0.0), ((3, 0), 'west', (2, 0), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((3, 2), 'south', (3, 2), 0.0), ((1, 3), 'east', (1, 3), 0.0), ((4, 1), 'east', (4, 1), 0.0), ((4, 2), 'west', (3, 2), 0.0), ((4, 3), 'north', (4, 4), 0.0), ((3, 3), 'east', (4, 3), 0.0), ((4, 4), 'east', (4, 3), 0.0), ((4, 3), 'south', (4, 3), 0.0), ((3, 0), 'north', (3, 0), 0.0), ((3, 0), 'west', (2, 0), 0.0), ((3, 3), 'east', (4, 3), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((3, 3), 'north', (3, 4), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((3, 4), 'north', (2, 4), 0.0), ((1, 2), 'north', (1, 3), 0.0), ((4, 4), 'south', (4, 3), 0.0), ((1, 2), 'south', (1, 1), 0.0), ((1, 0), 'south', (1, 0), 0.0), ((3, 0), 'east', (4, 0), 0.0), ((1, 3), 'south', (1, 2), 0.0), ((3, 0), 'west', (2, 0), 0.0), ((4, 0), 'west', (4, 0), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((1, 3), 'north', (1, 4), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((1, 0), 'west', (0, 0), 0.0), ((4, 4), 'south', (3, 4), 0.0), ((2, 0), 'north', (2, 0), 0.0), ((3, 3), 'north', (3, 4), 0.0), ((3, 0), 'north', (3, 0), 0.0), ((1, 4), 'east', (2, 4), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((2, 0), 'west', (1, 0), 0.0), ((4, 4), 'south', (4, 3), 0.0), ((1, 2), 'west', (0, 2), 0.0), ((1, 4), 'east', (2, 4), 0.0), ((4, 1), 'east', (4, 2), 0.0), ((1, 2), 'north', (1, 3), 0.0), ((4, 4), 'south', (4, 3), 0.0), ((1, 0), 'west', (1, 0), 0.0), ((4, 1), 'north', (4, 2), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((4, 3), 'east', (4, 3), 0.0), ((1, 2), 'west', (1, 1), 0.0), ((3, 2), 'south', (4, 2), 0.0), ((1, 0), 'north', (1, 1), 0.0), ((3, 2), 'north', (3, 3), 0.0), ((4, 4), 'west', (4, 4), 0.0), ((3, 3), 'east', (4, 3), 0.0), ((4, 4), 'east', (4, 4), 0.0), ((1, 2), 'south', (1, 1), 0.0), ((1, 0), 'east', (2, 0), 0.0), ((3, 0), 'east', (4, 0), 0.0), ((1, 4), 'west', (0, 4), 0.0), ((4, 4), 'north', (4, 4), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((4, 3), 'south', (4, 2), 0.0), ((3, 0), 'west', (3, 0), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((3, 3), 'south', (3, 2), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((4, 0), 'south', (4, 0), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((1, 1), 'west', (0, 1), 0.0), ((4, 2), 'east', (4, 2), 0.0), ((4, 3), 'south', (4, 2), 0.0), ((3, 0), 'east', (4, 0), 0.0), ((1, 3), 'east', (1, 3), 0.0), ((1, 2), 'east', (2, 2), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((1, 3), 'east', (1, 2), 0.0), ((1, 4), 'east', (2, 4), 0.0), ((1, 4), 'east', (2, 4), 0.0), ((3, 3), 'east', (3, 4), 0.0), ((3, 2), 'north', (3, 3), 0.0), ((3, 4), 'east', (3, 3), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((1, 4), 'west', (0, 4), 0.0), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((3, 3), 'east', (4, 3), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((4, 0), 'east', (4, 0), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((1, 2), 'south', (1, 1), 0.0), ((4, 0), 'west', (3, 0), 0.0), ((1, 4), 'south', (0, 4), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((4, 4), 'east', (4, 4), 0.0), ((2, 0), 'north', (2, 0), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((3, 3), 'west', (3, 3), 0.0), ((4, 1), 'east', (4, 1), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((3, 4), 'east', (3, 3), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((1, 4), 'east', (2, 4), 0.0), ((1, 0), 'north', (1, 1), 0.0), ((1, 2), 'east', (2, 2), 0.0), ((1, 2), 'west', (0, 2), 0.0), ((1, 2), 'west', (0, 2), 0.0), ((3, 3), 'south', (3, 2), 0.0), ((1, 3), 'north', (1, 4), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((3, 4), 'north', (3, 4), 0.0), ((1, 2), 'north', (2, 2), 0.0), ((1, 3), 'north', (1, 4), 0.0), ((3, 0), 'east', (3, 0), 0.0), ((4, 0), 'north', (4, 1), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((3, 4), 'north', (3, 4), 0.0), ((2, 0), 'west', (1, 0), 0.0), ((4, 3), 'north', (4, 4), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((3, 2), 'south', (3, 2), 0.0), ((4, 4), 'north', (4, 4), 0.0), ((1, 1), 'north', (1, 2), 0.0), ((3, 2), 'north', (3, 3), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((3, 0), 'east', (3, 0), 0.0), ((1, 0), 'west', (0, 0), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((1, 3), 'north', (1, 3), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((1, 1), 'west', (1, 0), 0.0), ((1, 3), 'west', (0, 3), 0.0), ((4, 2), 'west', (3, 2), 0.0), ((1, 0), 'east', (2, 0), 0.0), ((1, 3), 'south', (1, 2), 0.0), ((3, 2), 'east', (4, 2), 0.0), ((4, 2), 'south', (4, 1), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((4, 2), 'east', (4, 2), 0.0), ((4, 2), 'south', (4, 1), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((1, 0), 'east', (2, 0), 0.0), ((1, 2), 'south', (1, 1), 0.0), ((1, 4), 'west', (0, 4), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((1, 1), 'south', (1, 1), 0.0), ((1, 0), 'north', (1, 1), 0.0), ((3, 2), 'east', (3, 3), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((4, 3), 'south', (4, 2), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((3, 0), 'east', (4, 0), 0.0), ((4, 4), 'south', (4, 3), 0.0), ((2, 0), 'west', (2, 0), 0.0), ((3, 4), 'north', (3, 4), 0.0), ((1, 3), 'west', (0, 3), 0.0), ((1, 3), 'north', (1, 4), 0.0), ((0, 1), 'exit', 'TERMINAL_STATE', -10), ((1, 0), 'west', (1, 0), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((4, 3), 'north', (4, 4), 0.0), ((4, 4), 'west', (4, 4), 0.0), ((0, 3), 'exit', 'TERMINAL_STATE', -10), ((1, 0), 'south', (0, 0), 0.0), ((4, 1), 'west', (4, 1), 0.0), ((3, 3), 'east', (4, 3), 0.0), ((4, 4), 'east', (4, 4), 0.0), ((1, 4), 'east', (2, 4), 0.0), ((1, 3), 'south', (0, 3), 0.0), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((3, 3), 'west', (3, 3), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((2, 4), 'exit', 'TERMINAL_STATE', 10), ((3, 3), 'east', (3, 2), 0.0), ((2, 0), 'south', (2, 0), 0.0), ((4, 1), 'north', (4, 2), 0.0), ((1, 1), 'south', (1, 0), 0.0), ((4, 4), 'south', (4, 3), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((1, 1), 'east', (1, 1), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((2, 2), 'exit', 'TERMINAL_STATE', 1), ((3, 0), 'west', (2, 0), 0.0), ((3, 4), 'east', (4, 4), 0.0), ((4, 4), 'west', (3, 4), 0.0), ((0, 4), 'exit', 'TERMINAL_STATE', -10), ((4, 3), 'north', (4, 4), 0.0), ((4, 0), 'west', (3, 0), 0.0), ((4, 4), 'north', (4, 4), 0.0), ((4, 3), 'south', (4, 2), 0.0), ((1, 0), 'east', (2, 0), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((4, 4), 'north', (4, 4), 0.0), ((4, 3), 'west', (3, 3), 0.0), ((3, 4), 'east', (3, 3), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((3, 3), 'south', (3, 3), 0.0), ((3, 4), 'south', (3, 3), 0.0), ((1, 2), 'south', (1, 1), 0.0), ((3, 2), 'north', (3, 3), 0.0), ((1, 1), 'south', (1, 0), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((4, 4), 'west', (3, 4), 0.0), ((1, 0), 'north', (1, 1), 0.0), ((4, 3), 'east', (4, 3), 0.0), ((2, 0), 'west', (2, 0), 0.0), ((3, 0), 'south', (2, 0), 0.0), ((0, 0), 'exit', 'TERMINAL_STATE', -10), ((3, 0), 'west', (2, 0), 0.0), ((4, 2), 'east', (4, 2), 0.0), ((0, 2), 'exit', 'TERMINAL_STATE', -10), ((2, 4), 'exit', 'TERMINAL_STATE', 10)]57 else:58 raise NotImplementedError59 return list_experiences60#61#62#63class FixedRandom:64 def __init__(self):65 fixedState = (3, (2147483648, 507801126, 683453281, 310439348, 2597246090,66 2209084787, 2267831527, 979920060, 3098657677, 37650879, 807947081, 3974896263,67 881243242, 3100634921, 1334775171, 3965168385, 746264660, 4074750168, 500078808,68 776561771, 702988163, 1636311725, 2559226045, 157578202, 2498342920, 2794591496,69 4130598723, 496985844, 2944563015, 3731321600, 3514814613, 3362575829, 3038768745,70 2206497038, 1108748846, 1317460727, 3134077628, 988312410, 1674063516, 746456451,71 3958482413, 1857117812, 708750586, 1583423339, 3466495450, 1536929345, 1137240525,72 3875025632, 2466137587, 1235845595, 4214575620, 3792516855, 657994358, 1241843248,73 1695651859, 3678946666, 1929922113, 2351044952, 2317810202, 2039319015, 460787996,74 3654096216, 4068721415, 1814163703, 2904112444, 1386111013, 574629867, 2654529343,75 3833135042, 2725328455, 552431551, 4006991378, 1331562057, 3710134542, 303171486,76 1203231078, 2670768975, 54570816, 2679609001, 578983064, 1271454725, 3230871056,77 2496832891, 2944938195, 1608828728, 367886575, 2544708204, 103775539, 1912402393,78 1098482180, 2738577070, 3091646463, 1505274463, 2079416566, 659100352, 839995305,79 1696257633, 274389836, 3973303017, 671127655, 1061109122, 517486945, 1379749962,80 3421383928, 3116950429, 2165882425, 2346928266, 2892678711, 2936066049, 1316407868,81 2873411858, 4279682888, 2744351923, 3290373816, 1014377279, 955200944, 4220990860,82 2386098930, 1772997650, 3757346974, 1621616438, 2877097197, 442116595, 2010480266,83 2867861469, 2955352695, 605335967, 2222936009, 2067554933, 4129906358, 1519608541,84 1195006590, 1942991038, 2736562236, 279162408, 1415982909, 4099901426, 1732201505,85 2934657937, 860563237, 2479235483, 3081651097, 2244720867, 3112631622, 1636991639,86 3860393305, 2312061927, 48780114, 1149090394, 2643246550, 1764050647, 3836789087,87 3474859076, 4237194338, 1735191073, 2150369208, 92164394, 756974036, 2314453957,88 323969533, 4267621035, 283649842, 810004843, 727855536, 1757827251, 3334960421,89 3261035106, 38417393, 2660980472, 1256633965, 2184045390, 811213141, 2857482069,90 2237770878, 3891003138, 2787806886, 2435192790, 2249324662, 3507764896, 995388363,91 856944153, 619213904, 3233967826, 3703465555, 3286531781, 3863193356, 2992340714,92 413696855, 3865185632, 1704163171, 3043634452, 2225424707, 2199018022, 3506117517,93 3311559776, 3374443561, 1207829628, 668793165, 1822020716, 2082656160, 1160606415,94 3034757648, 741703672, 3094328738, 459332691, 2702383376, 1610239915, 4162939394,95 557861574, 3805706338, 3832520705, 1248934879, 3250424034, 892335058, 74323433,96 3209751608, 3213220797, 3444035873, 3743886725, 1783837251, 610968664, 580745246,97 4041979504, 201684874, 2673219253, 1377283008, 3497299167, 2344209394, 2304982920,98 3081403782, 2599256854, 3184475235, 3373055826, 695186388, 2423332338, 222864327,99 1258227992, 3627871647, 3487724980, 4027953808, 3053320360, 533627073, 3026232514,100 2340271949, 867277230, 868513116, 2158535651, 2487822909, 3428235761, 3067196046,101 3435119657, 1908441839, 788668797, 3367703138, 3317763187, 908264443, 2252100381,102 764223334, 4127108988, 384641349, 3377374722, 1263833251, 1958694944, 3847832657,103 1253909612, 1096494446, 555725445, 2277045895, 3340096504, 1383318686, 4234428127,104 1072582179, 94169494, 1064509968, 2681151917, 2681864920, 734708852, 1338914021,105 1270409500, 1789469116, 4191988204, 1716329784, 2213764829, 3712538840, 919910444,106 1318414447, 3383806712, 3054941722, 3378649942, 1205735655, 1268136494, 2214009444,107 2532395133, 3232230447, 230294038, 342599089, 772808141, 4096882234, 3146662953,108 2784264306, 1860954704, 2675279609, 2984212876, 2466966981, 2627986059, 2985545332,109 2578042598, 1458940786, 2944243755, 3959506256, 1509151382, 325761900, 942251521,110 4184289782, 2756231555, 3297811774, 1169708099, 3280524138, 3805245319, 3227360276,111 3199632491, 2235795585, 2865407118, 36763651, 2441503575, 3314890374, 1755526087,112 17915536, 1196948233, 949343045, 3815841867, 489007833, 2654997597, 2834744136,113 417688687, 2843220846, 85621843, 747339336, 2043645709, 3520444394, 1825470818,114 647778910, 275904777, 1249389189, 3640887431, 4200779599, 323384601, 3446088641,115 4049835786, 1718989062, 3563787136, 44099190, 3281263107, 22910812, 1826109246,116 745118154, 3392171319, 1571490704, 354891067, 815955642, 1453450421, 940015623,117 796817754, 1260148619, 3898237757, 176670141, 1870249326, 3317738680, 448918002,118 4059166594, 2003827551, 987091377, 224855998, 3520570137, 789522610, 2604445123,119 454472869, 475688926, 2990723466, 523362238, 3897608102, 806637149, 2642229586,120 2928614432, 1564415411, 1691381054, 3816907227, 4082581003, 1895544448, 3728217394,121 3214813157, 4054301607, 1882632454, 2873728645, 3694943071, 1297991732, 2101682438,122 3952579552, 678650400, 1391722293, 478833748, 2976468591, 158586606, 2576499787,123 662690848, 3799889765, 3328894692, 2474578497, 2383901391, 1718193504, 3003184595,124 3630561213, 1929441113, 3848238627, 1594310094, 3040359840, 3051803867, 2462788790,125 954409915, 802581771, 681703307, 545982392, 2738993819, 8025358, 2827719383,126 770471093, 3484895980, 3111306320, 3900000891, 2116916652, 397746721, 2087689510,127 721433935, 1396088885, 2751612384, 1998988613, 2135074843, 2521131298, 707009172,128 2398321482, 688041159, 2264560137, 482388305, 207864885, 3735036991, 3490348331,129 1963642811, 3260224305, 3493564223, 1939428454, 1128799656, 1366012432, 2858822447,130 1428147157, 2261125391, 1611208390, 1134826333, 2374102525, 3833625209, 2266397263,131 3189115077, 770080230, 2674657172, 4280146640, 3604531615, 4235071805, 3436987249,132 509704467, 2582695198, 4256268040, 3391197562, 1460642842, 1617931012, 457825497,133 1031452907, 1330422862, 4125947620, 2280712485, 431892090, 2387410588, 2061126784,134 896457479, 3480499461, 2488196663, 4021103792, 1877063114, 2744470201, 1046140599,135 2129952955, 3583049218, 4217723693, 2720341743, 820661843, 1079873609, 3360954200,136 3652304997, 3335838575, 2178810636, 1908053374, 4026721976, 1793145418, 476541615,137 973420250, 515553040, 919292001, 2601786155, 1685119450, 3030170809, 1590676150,138 1665099167, 651151584, 2077190587, 957892642, 646336572, 2743719258, 866169074,139 851118829, 4225766285, 963748226, 799549420, 1955032629, 799460000, 2425744063,140 2441291571, 1928963772, 528930629, 2591962884, 3495142819, 1896021824, 901320159,141 3181820243, 843061941, 3338628510, 3782438992, 9515330, 1705797226, 953535929,142 764833876, 3202464965, 2970244591, 519154982, 3390617541, 566616744, 3438031503,143 1853838297, 170608755, 1393728434, 676900116, 3184965776, 1843100290, 78995357,144 2227939888, 3460264600, 1745705055, 1474086965, 572796246, 4081303004, 882828851,145 1295445825, 137639900, 3304579600, 2722437017, 4093422709, 273203373, 2666507854,146 3998836510, 493829981, 1623949669, 3482036755, 3390023939, 833233937, 1639668730,147 1499455075, 249728260, 1210694006, 3836497489, 1551488720, 3253074267, 3388238003,148 2372035079, 3945715164, 2029501215, 3362012634, 2007375355, 4074709820, 631485888,149 3135015769, 4273087084, 3648076204, 2739943601, 1374020358, 1760722448, 3773939706,150 1313027823, 1895251226, 4224465911, 421382535, 1141067370, 3660034846, 3393185650,151 1850995280, 1451917312, 3841455409, 3926840308, 1397397252, 2572864479, 2500171350,152 3119920613, 531400869, 1626487579, 1099320497, 407414753, 2438623324, 99073255,153 3175491512, 656431560, 1153671785, 236307875, 2824738046, 2320621382, 892174056,154 230984053, 719791226, 2718891946, 624), None)155 self.random = random.Random()156 self.random.setstate(fixedState)157158159"""160 Data structures useful for implementing SearchAgents161"""162163164class Stack:165 "A container with a last-in-first-out (LIFO) queuing policy."166167 def __init__(self):168 self.list = []169170 def push(self, item):171 "Push 'item' onto the stack"172 self.list.append(item)173174 def pop(self):175 "Pop the most recently pushed item from the stack"176 return self.list.pop()177178 def isEmpty(self):179 "Returns true if the stack is empty"180 return len(self.list) == 0181182183class Queue:184 "A container with a first-in-first-out (FIFO) queuing policy."185186 def __init__(self):187 self.list = []188189 def push(self, item):190 "Enqueue the 'item' into the queue"191 self.list.insert(0, item)192193 def pop(self):194 """195 Dequeue the earliest enqueued item still in the queue. This196 operation removes the item from the queue.197 """198 return self.list.pop()199200 def isEmpty(self):201 "Returns true if the queue is empty"202 return len(self.list) == 0203204205class PriorityQueue:206 """207 Implements a priority queue data structure. Each inserted item208 has a priority associated with it and the client is usually interested209 in quick retrieval of the lowest-priority item in the queue. This210 data structure allows O(1) access to the lowest-priority item.211 """212213 def __init__(self):214 self.heap = []215 self.count = 0216217 def push(self, item, priority):218 entry = (priority, self.count, item)219 heapq.heappush(self.heap, entry)220 self.count += 1221222 def pop(self):223 (_, _, item) = heapq.heappop(self.heap)224 return item225226 def isEmpty(self):227 return len(self.heap) == 0228229 def update(self, item, priority):230 # If item already in priority queue with higher priority, update its priority and rebuild the heap.231 # If item already in priority queue with equal or lower priority, do nothing.232 # If item not in priority queue, do the same thing as self.push.233 for index, (p, c, i) in enumerate(self.heap):234 if i == item:235 if p <= priority:236 break237 del self.heap[index]238 self.heap.append((priority, c, item))239 heapq.heapify(self.heap)240 break241 else:242 self.push(item, priority)243244245class PriorityQueueWithFunction(PriorityQueue):246 """247 Implements a priority queue with the same push/pop signature of the248 Queue and the Stack classes. This is designed for drop-in replacement for249 those two classes. The caller has to provide a priority function, which250 extracts each item's priority.251 """252253 def __init__(self, priorityFunction):254 "priorityFunction (item) -> priority"255 self.priorityFunction = priorityFunction # store the priority function256 PriorityQueue.__init__(self) # super-class initializer257258 def push(self, item):259 "Adds an item to the queue with priority from the priority function"260 PriorityQueue.push(self, item, self.priorityFunction(item))261262263def manhattanDistance(xy1, xy2):264 "Returns the Manhattan distance between points xy1 and xy2"265 return abs(xy1[0] - xy2[0]) + abs(xy1[1] - xy2[1])266267268"""269Data structures and functions useful for various course projects270271The search project should not need anything below this line.272"""273274275class Counter(dict):276 """277 A counter keeps track of counts for a set of keys.278279 The counter class is an extension of the standard python280 dictionary type. It is specialized to have number values281 (integers or floats), and includes a handful of additional282 functions to ease the task of counting data. In particular,283 all keys are defaulted to have value 0. Using a dictionary:284285 a = {}286 print a['test']287288 would give an error, while the Counter class analogue:289290 >>> a = Counter()291 >>> print a['test']292 0293294 returns the default 0 value. Note that to reference a key295 that you know is contained in the counter,296 you can still use the dictionary syntax:297298 >>> a = Counter()299 >>> a['test'] = 2300 >>> print a['test']301 2302303 This is very useful for counting things without initializing their counts,304 see for example:305306 >>> a['blah'] += 1307 >>> print a['blah']308 1309310 The counter also includes additional functionality useful in implementing311 the classifiers for this assignment. Two counters can be added,312 subtracted or multiplied together. See below for details. They can313 also be normalized and their total count and arg max can be extracted.314 """315316 def __getitem__(self, idx):317 self.setdefault(idx, 0)318 return dict.__getitem__(self, idx)319320 def incrementAll(self, keys, count):321 """322 Increments all elements of keys by the same count.323324 >>> a = Counter()325 >>> a.incrementAll(['one','two', 'three'], 1)326 >>> a['one']327 1328 >>> a['two']329 1330 """331 for key in keys:332 self[key] += count333334 def argMax(self):335 """336 Returns the key with the highest value.337 """338 if len(list(self.keys())) == 0:339 return None340 all = list(self.items())341 values = [x[1] for x in all]342 maxIndex = values.index(max(values))343 return all[maxIndex][0]344345 def sortedKeys(self):346 """347 Returns a list of keys sorted by their values. Keys348 with the highest values will appear first.349350 >>> a = Counter()351 >>> a['first'] = -2352 >>> a['second'] = 4353 >>> a['third'] = 1354 >>> a.sortedKeys()355 ['second', 'third', 'first']356 """357 sortedItems = list(self.items())358359 def compare(x, y): return sign(y[1] - x[1])360 sortedItems.sort(key=functools.cmp_to_key(compare))361 return [x[0] for x in sortedItems]362363 def totalCount(self):364 """365 Returns the sum of counts for all keys.366 """367 return sum(self.values())368369 def normalize(self):370 """371 Edits the counter such that the total count of all372 keys sums to 1. The ratio of counts for all keys373 will remain the same. Note that normalizing an empty374 Counter will result in an error.375 """376 total = float(self.totalCount())377 if total == 0:378 return379 for key in list(self.keys()):380 self[key] = self[key] / total381382 def divideAll(self, divisor):383 """384 Divides all counts by divisor385 """386 divisor = float(divisor)387 for key in self:388 self[key] /= divisor389390 def copy(self):391 """392 Returns a copy of the counter393 """394 return Counter(dict.copy(self))395396 def __mul__(self, y):397 """398 Multiplying two counters gives the dot product of their vectors where399 each unique label is a vector element.400401 >>> a = Counter()402 >>> b = Counter()403 >>> a['first'] = -2404 >>> a['second'] = 4405 >>> b['first'] = 3406 >>> b['second'] = 5407 >>> a['third'] = 1.5408 >>> a['fourth'] = 2.5409 >>> a * b410 14411 """412 sum = 0413 x = self414 if len(x) > len(y):415 x, y = y, x416 for key in x:417 if key not in y:418 continue419 sum += x[key] * y[key]420 return sum421422 def __radd__(self, y):423 """424 Adding another counter to a counter increments the current counter425 by the values stored in the second counter.426427 >>> a = Counter()428 >>> b = Counter()429 >>> a['first'] = -2430 >>> a['second'] = 4431 >>> b['first'] = 3432 >>> b['third'] = 1433 >>> a += b434 >>> a['first']435 1436 """437 for key, value in list(y.items()):438 self[key] += value439440 def __add__(self, y):441 """442 Adding two counters gives a counter with the union of all keys and443 counts of the second added to counts of the first.444445 >>> a = Counter()446 >>> b = Counter()447 >>> a['first'] = -2448 >>> a['second'] = 4449 >>> b['first'] = 3450 >>> b['third'] = 1451 >>> (a + b)['first']452 1453 """454 addend = Counter()455 for key in self:456 if key in y:457 addend[key] = self[key] + y[key]458 else:459 addend[key] = self[key]460 for key in y:461 if key in self:462 continue463 addend[key] = y[key]464 return addend465466 def __sub__(self, y):467 """468 Subtracting a counter from another gives a counter with the union of all keys and469 counts of the second subtracted from counts of the first.470471 >>> a = Counter()472 >>> b = Counter()473 >>> a['first'] = -2474 >>> a['second'] = 4475 >>> b['first'] = 3476 >>> b['third'] = 1477 >>> (a - b)['first']478 -5479 """480 addend = Counter()481 for key in self:482 if key in y:483 addend[key] = self[key] - y[key]484 else:485 addend[key] = self[key]486 for key in y:487 if key in self:488 continue489 addend[key] = -1 * y[key]490 return addend491492493def raiseNotDefined():494 fileName = inspect.stack()[1][1]495 line = inspect.stack()[1][2]496 method = inspect.stack()[1][3]497498 print("*** Method not implemented: %s at line %s of %s" %499 (method, line, fileName))500 sys.exit(1)501502503def normalize(vectorOrCounter):504 """505 Normalize a vector or counter by dividing each value by the sum of all values506 """507 normalizedCounter = Counter()508 if type(vectorOrCounter) == type(normalizedCounter):509 counter = vectorOrCounter510 total = float(counter.totalCount())511 if total == 0:512 return counter513 for key in list(counter.keys()):514 value = counter[key]515 normalizedCounter[key] = value / total516 return normalizedCounter517 else:518 vector = vectorOrCounter519 s = float(sum(vector))520 if s == 0:521 return vector522 return [el / s for el in vector]523524525def nSample(distribution, values, n):526 if sum(distribution) != 1:527 distribution = normalize(distribution)528 rand = [random.random() for i in range(n)]529 rand.sort()530 samples = []531 samplePos, distPos, cdf = 0, 0, distribution[0]532 while samplePos < n:533 if rand[samplePos] < cdf:534 samplePos += 1535 samples.append(values[distPos])536 else:537 distPos += 1538 cdf += distribution[distPos]539 return samples540541542def sample(distribution, values=None):543 if type(distribution) == Counter:544 items = sorted(distribution.items())545 distribution = [i[1] for i in items]546 values = [i[0] for i in items]547 if sum(distribution) != 1:548 distribution = normalize(distribution)549 choice = random.random()550 i, total = 0, distribution[0]551 while choice > total:552 i += 1553 total += distribution[i]554 return values[i]555556557def sampleFromCounter(ctr):558 items = sorted(ctr.items())559 return sample([v for k, v in items], [k for k, v in items])560561562def getProbability(value, distribution, values):563 """564 Gives the probability of a value under a discrete distribution565 defined by (distributions, values).566 """567 total = 0.0568 for prob, val in zip(distribution, values):569 if val == value:570 total += prob571 return total572573574def flipCoin(p):575 r = random.random()576 return r < p577578579def chooseFromDistribution(distribution):580 "Takes either a counter or a list of (prob, key) pairs and samples"581 if type(distribution) == dict or type(distribution) == Counter:582 return sample(distribution)583 r = random.random()584 base = 0.0585 for prob, element in distribution:586 base += prob587 if r <= base:588 return element589590591def nearestPoint(pos):592 """593 Finds the nearest grid point to a position (discretizes).594 """595 (current_row, current_col) = pos596597 grid_row = int(current_row + 0.5)598 grid_col = int(current_col + 0.5)599 return (grid_row, grid_col)600601602def sign(x):603 """604 Returns 1 or -1 depending on the sign of x605 """606 if(x >= 0):607 return 1608 else:609 return -1610611612def arrayInvert(array):613 """614 Inverts a matrix stored as a list of lists.615 """616 result = [[] for i in array]617 for outer in array:618 for inner in range(len(outer)):619 result[inner].append(outer[inner])620 return result621622623def matrixAsList(matrix, value=True):624 """625 Turns a matrix into a list of coordinates matching the specified value626 """627 rows, cols = len(matrix), len(matrix[0])628 cells = []629 for row in range(rows):630 for col in range(cols):631 if matrix[row][col] == value:632 cells.append((row, col))633 return cells634635636def lookup(name, namespace):637 """638 Get a method or class from any imported module from its name.639 Usage: lookup(functionName, globals())640 """641 dots = name.count('.')642 if dots > 0:643 moduleName, objName = '.'.join(644 name.split('.')[:-1]), name.split('.')[-1]645 module = __import__(moduleName)646 return getattr(module, objName)647 else:648 modules = [obj for obj in list(namespace.values()) if str(649 type(obj)) == "<type 'module'>"]650 options = [getattr(module, name)651 for module in modules if name in dir(module)]652 options += [obj[1]653 for obj in list(namespace.items()) if obj[0] == name]654 if len(options) == 1:655 return options[0]656 if len(options) > 1:657 raise Exception('Name conflict for %s')658 raise Exception('%s not found as a method or class' % name)659660661def pause():662 """663 Pauses the output stream awaiting user feedback.664 """665 print("<Press enter/return to continue>")666 input()667668669# code to handle timeouts670#671# FIXME672# NOTE: TimeoutFuncton is NOT reentrant. Later timeouts will silently673# disable earlier timeouts. Could be solved by maintaining a global list674# of active time outs. Currently, questions which have test cases calling675# this have all student code so wrapped.676#677import signal678import time679680681class TimeoutFunctionException(Exception):682 """Exception to raise on a timeout"""683 pass684685686class TimeoutFunction:687 def __init__(self, function, timeout):688 self.timeout = timeout689 self.function = function690691 def handle_timeout(self, signum, frame):692 raise TimeoutFunctionException()693694 def __call__(self, *args, **keyArgs):695 # If we have SIGALRM signal, use it to cause an exception if and696 # when this function runs too long. Otherwise check the time taken697 # after the method has returned, and throw an exception then.698 if hasattr(signal, 'SIGALRM'):699 old = signal.signal(signal.SIGALRM, self.handle_timeout)700 signal.alarm(self.timeout)701 try:702 result = self.function(*args, **keyArgs)703 finally:704 signal.signal(signal.SIGALRM, old)705 signal.alarm(0)706 else:707 startTime = time.time()708 result = self.function(*args, **keyArgs)709 timeElapsed = time.time() - startTime710 if timeElapsed >= self.timeout:711 self.handle_timeout(None, None)712 return result713714715_ORIGINAL_STDOUT = None716_ORIGINAL_STDERR = None717_MUTED = False718719720class WritableNull:721 def write(self, string):722 pass723724725def mutePrint():726 global _ORIGINAL_STDOUT, _ORIGINAL_STDERR, _MUTED727 if _MUTED:728 return729 _MUTED = True730731 _ORIGINAL_STDOUT = sys.stdout732 #_ORIGINAL_STDERR = sys.stderr733 sys.stdout = WritableNull()734 #sys.stderr = WritableNull()735736737def unmutePrint():738 global _ORIGINAL_STDOUT, _ORIGINAL_STDERR, _MUTED739 if not _MUTED:740 return741 _MUTED = False742743 sys.stdout = _ORIGINAL_STDOUT ...

Full Screen

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run avocado automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful