public void paintComponent(Graphics g){
		super.paintComponent(g);
		this.setBackground(Color.PINK);
		int size = 25;
		for(int x = 0; x < Globals.width; x++){
			for(int y = 0; y < Globals.height; y++){
				g.setColor(new Color((int)(Globals.heightmap[x][y]),(int)(Globals.heightmap[x][y]),(int)(Globals.heightmap[x][y])));
				for(Race r: Globals.races){
					if(r.getSpeciesAt(x, y) != null){
						String species = r.getSpecies();
						if(species.equals("Sheep"))
							g.setColor(Color.WHITE);
						else if(species.equals("Wolf"))
							g.setColor(Color.GRAY);
					}
				}
				g.fillRect(x*size, y*size, size, size);
			}
		}
		try{
			Thread.sleep(1000);
		}
		catch(Exception e){
			System.exit(0);
		}
		this.repaint();
	}