added working gravity with collision /w bugs