public void GameLoop() throws InterruptedException {
		long wait = 50;
		numberOfMonsters = (int) (40 * Math.random());
		System.out.println("WAVE " + wave);
		System.out.println("Number of monsters: " + numberOfMonsters);
		int index = 0;
		while (true) {
			index += 1;
			//System.out.println(index);
			if (index <= numberOfMonsters) {
				addMonster();
				//numberOfMonsters-=1;
			}
			moveMonsters();
			shootMonsters();
			checkMonsters();
			main.repaint();
			Thread.sleep(300);
			if (killedMonsters + finishedMonsters == numberOfMonsters) {
				main.repaint();
				System.out.println("WAVE CLEARED");
				System.out.println("KILLED MONSTERS: " + killedMonsters);
				System.out.println("FINISHED MONSTERS: " + finishedMonsters);
				System.out.println("------------------------------------------");
				System.out.println("");
				wave += 1;
				killedMonsters = 0;
				finishedMonsters = 0;
				Thread.sleep(500);
				GameLoop();
			}
			
		}
	}