added Rat class in order to more easily traverse the maze