Arduino-based hardware and software for controlling a maze