Collision detection is properly working now