Robot code for the frisbee thrower