onCollision added printouts for nodes