Added onCollision to objects; still needs work.