control the car movement on swing gui