began working on collision detection