Added navigate function to navigator and created a main program loop in main.