collision X


    
    function collisionX(){
      //check left and right boundaries
      if(ballLeft < 4 || ballLeft > 480)
        return true;
      return false;
    }