Abstracted away the collision code