final code with auton

needs some tweaking but everything works