public static void drawMap()
    {
        for (int x=0;x<Square.xAmt();++x)
        {
            for (int y=0;y<Square.yAmt();++y)
            {
                if (Square.get(x,y).isFree())
                {
                    int r=120-map.value[x][y]/10;
                    int b=map.value[x][y]/25;
                    if (r>120) r=120;
                    if (r<0) r=0;
                    if (b>255) b=255;
                    if (b<0) b=0;
                    Draw.draw(new Draw(Square.get(x,y),new Color(0,r,b),1));
                }
            }
        }
    }