setup for abstracting collision detection