improve the squareCollision module with new parameter on the emit of collision event.