'Human-like' brain helps robot out of a maze