public Asteroid(double xPos, double yPos, double anAngle, int aSize, int frameWidth, int frameHeight)
    {
        generator = new Random();
        x = xPos;
        y = yPos;
        fWidth = frameWidth;
        fHeight = frameHeight;
        angle = anAngle;
        rotAngle = anAngle;
        size = aSize;
        
        //Small Asteroid
        if (aSize == 1)
        {
          xVel = SMALL_SPEED * Math.cos(Math.toRadians(angle));
          yVel = SMALL_SPEED * Math.sin(Math.toRadians(angle));
          try 
          {
             image = ImageIO.read(new File("small_asteroid.png"));
          }
          catch (IOException ex)
          {
             System.out.println("Can't read image.");
          }
            boundary = new Rectangle2D.Double(x + (image.getWidth(null)*.25), y + (image.getHeight(null)*.25) , image.getWidth(null) *.5, image.getHeight(null) *.5);
            points = SMALL_POINTS;
        }
        
        //Medium Asteroid
        else if (aSize == 2)
        {
          xVel = MEDIUM_SPEED * Math.cos(Math.toRadians(angle));
          yVel = MEDIUM_SPEED * Math.sin(Math.toRadians(angle));
          try 
          {
             image = ImageIO.read(new File("medium_asteroid.png"));
          }
          catch (IOException ex)
          {
             System.out.println("Can't read image.");
          }
            boundary = new Rectangle2D.Double(x + (image.getWidth(null)*.1), y + (image.getHeight(null)*.1) , image.getWidth(null) *.5, image.getHeight(null) *.5);
            points = MED_POINTS;
        }
        
        //Large Asteroid
        else if (aSize == 3)
        {
          xVel = LARGE_SPEED * Math.cos(Math.toRadians(angle));
          yVel = LARGE_SPEED * Math.sin(Math.toRadians(angle));
          try 
          {
             image = ImageIO.read(new File("large_asteroid.png"));
          }
          catch (IOException ex)
          {
             System.out.println("Can't read image.");
          }
            boundary = new Rectangle2D.Double(x + (image.getWidth(null)*.1), y + (image.getHeight(null) *.1) , image.getWidth(null) * .8, image.getHeight(null) * .8);
            points = LAR_POINTS;
        }
        
        //Sets the direction of the asteroid, 50/50 chance
         int rand = generator.nextInt(2);
         direction = 1;
         if (rand == 0) direction *= -1;
    }