added collision detection with the pockets