Changing the way collision works

Currently have a bouncing problem with gravity