public void renderElement(int pos, Graphics g) {
        Polygon p = new Polygon();
        switch (pos) {
            case 0:
                p.addPoint(0.5F, -0.5F);
                p.addPoint(0.5F, 0);
                p.addPoint(0.25F, 0);
                p.addPoint(0.25F, -0.25F);
                break;
            case 1:
                p.addPoint(0.5F, 0.5F);
                p.addPoint(0.5F, 0);
                p.addPoint(0.25F, 0);
                p.addPoint(0.25F, 0.25F);
                break;
            case 2:
                p.addPoint(0, 0.5F);
                p.addPoint(0, 0.25F);
                p.addPoint(0.25F, 0.25F);
                p.addPoint(0.5F, 0.5F);
                break;
            case 3:
                p.addPoint(0, 0.5F);
                p.addPoint(0, 0.25F);
                p.addPoint(-0.25F, 0.25F);
                p.addPoint(-0.5F, 0.5F);
                break;
            case 4:
                p.addPoint(-0.5F, 0.5F);
                p.addPoint(-0.5F, 0);
                p.addPoint(-0.25F, 0);
                p.addPoint(-0.25F, 0.25F);
                break;
            case 5:
                p.addPoint(-0.5F, -0.5F);
                p.addPoint(-0.5F, 0);
                p.addPoint(-0.25F, 0);
                p.addPoint(-0.25F, -0.25F);
                break;
            case 6:
                p.addPoint(0, -0.5F);
                p.addPoint(0, -0.25F);
                p.addPoint(-0.25F, -0.25F);
                p.addPoint(-0.5F, -0.5F);
                break;
            case 7:
                p.addPoint(0, -0.5F);
                p.addPoint(0, -0.25F);
                p.addPoint(0.25F, -0.25F);
                p.addPoint(0.5F, -0.5F);
                break;
            case 8:
                elements[8].render(g);
        }
        g.fill(p);
    }