add collision detection of ball and blocks