Move collide from sprite to layer.