continued work on collision detection