added new thread to simulate animated gravity