Fixes collision malloc issue but sprite is still teleporting to the top right corner of the screen.