Models a robot inside a square-grid maze