A* search implementation for "Boxed In" iPhone game