onCollision receives entity as parameter