dir = 0; image_speed = 0; train_index = 0; controller = -4; current_track = -4; current_track_entrance_angle = 180; current_track_exit_angle = 0; position_factor = 1; prev_x = x; prev_y = y;