Added a naive implementation of gravity