Collision detection finally works!