Got the collision detection code in place, something's not right though..