Made Ball movement dependent on time.