started work on collision detection