public void proccess(MatrixGraph graph) {
		if (lastWave == 0)
			lastWave = System.currentTimeMillis();

		waves.get(currentLevel).proccess(graph);
		System.out.println(currentLevel);
		if (waves.get(currentLevel).hasEnd()) {
			if ((System.currentTimeMillis() - lastWave) / 1000 >= 20) {
				lastWave = System.currentTimeMillis();
				if (currentLevel != waves.size() - 1) {
					currentLevel++;
				}
			}
		}
	}