public void draw(Graphics graphics, Point position)
  {
    ((Sprite)images.get(currentFrame)).draw(graphics,position);
    //graphics.drawImage((Image)images.get(currentFrame),position.x,position.y,null);
  }