added very basic ai object and a gravity function