public void moveLayerTwo(Graphics g) { // making it look fancy and shit Graphics2D g2d = (Graphics2D) g; for (Decorations i : decoList) { if (i.isFlipped() == true) { // if its flipped then flip the image or don't g2d.drawImage( i.getImage(), 479, i.getYTop(), -i.getImage().getWidth(null), i.getImage().getHeight(null), null); } else { g.drawImage(i.getImage(), 0, i.getYTop(), this); } } }