Creating a simple simulation with gravity