Added missing functions

Added required onCollision function and getPosition function