You can now simply include a file containing a function with the prototype int planRoute(int currentDirection, int cruiseDirection, tMazeTile *maze, tMazeTile *current) to change the behaviour of the robot.