working drive code for competition