Create a program to have a robot navigate through a maze and detect as many different colored objects as possible.