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