added collision detection to 2nd ing block