added color change on collision detection