On click function is working. Tour generation is working. Too many waypoints atm - need to fix this