Worked on collision detection