added collision detection to bricks