inclusion of collision detection: non working...