code works, robot doesn't