public void generate() {
		int counter = 2;
		
		int amountOfLakes = 6;
		int lakesMade = 0;

		for (int x = 0; x < Tile.SIZE; x++) {

			for (int y = 0; y < Tile.SIZE; y++) {
				int random = (int) (Math.random() * 50000);

				//Generates random tiles.
				if (level[x][y] == null) {
					
					if (random > 0 && random < 10000) {
						level[x][y] = new Plant(x * Tile.BLOCK, y * Tile.BLOCK);
					} else if (random > 10000 && random < 11000) {
						level[x][y] = new Rock(x * Tile.BLOCK, y * Tile.BLOCK);
						
					//Lake generator...
					} else if(random < 50000 && random > 49994 & lakesMade < amountOfLakes && x > 25 / 2 && y > 25) {
						int widthLake = (int) (Math.random() * 20);
						int heightLake = (int) (Math.random() * 20);
						
						for (int i = 0; i < widthLake; i++) {
							
							for (int t = 0; t < heightLake; t++) {
								level[x + i][y + t] = new Water((x + i) * Tile.BLOCK, (y + t) * Tile.BLOCK);
								
							}
						}
						
						lakesMade += 1;
						System.out.println("water " + x + "   " + y);
					}else{
						level[x][y] = new Grass(x * Tile.BLOCK, y * Tile.BLOCK);
					}
				}else{
					
				}
				
				counter = 2;
			}
		}

	}