changed some stuff with ball simulation