In the state "Exit left?", Kara walks to the right and looks for an exit on his left side. If he finds an exit, he climbs to the next row. If he stands in front of a tree, he turns around and changes to the state "Exit right?", which works in the same way as "Exit left?".