Drawing robot that solves mazes