add basic collision detection