Added collision detection for upper and lower

boundary and get left and right x and get top and bottom y for
boundaries and pipes and heli