public void loadLevel(String name) {
		//reset variables
		win = false;
		lives = 3;
		score = 0;
		ball = new Ball[1];
		
		powerUp = "None";
		activatePowerUp();
		
		//load level depending on which was chosen (I did not have time to implement a better way to do this t_t)
		if (name.equals("empty")) {
			brick = new Brick[0][0];
		} else if (name.equals("classic")) {
			brick = new Brick[4][16];
			
			for (int i = 0; i < brick[0].length; i++) {
				brick[0][i] = new Brick((int)(i * (playfieldWidth / brick[0].length)), (int)(((1) * (playfieldHeight / (brick[0].length * 2)))), playfieldWidth / brick[0].length, playfieldHeight / (brick.length * 8), 4, powerUpsEnabled, Ball.getDifficultyFactor());
			}
			
			for (int i = 0; i < brick[1].length; i++) {
				brick[1][i] = new Brick((int)(i * (playfieldWidth / brick[1].length)), (int)(((2) * (playfieldHeight / (brick[1].length * 2)))), playfieldWidth / brick[1].length, playfieldHeight / (brick.length * 8), 3, powerUpsEnabled, Ball.getDifficultyFactor());
			}
			
			for (int i = 0; i < brick[2].length; i++) {
				brick[2][i] = new Brick((int)(i * (playfieldWidth / brick[2].length)), (int)(((3) * (playfieldHeight / (brick[2].length * 2)))), playfieldWidth / brick[2].length, playfieldHeight / (brick.length * 8), 2, powerUpsEnabled, Ball.getDifficultyFactor());
			}
			
			for (int i = 0; i < brick[3].length; i++) {
				brick[3][i] = new Brick((int)(i * (playfieldWidth / brick[3].length)), (int)(((4) * (playfieldHeight / (brick[3].length * 2)))), playfieldWidth / brick[3].length, playfieldHeight / (brick.length * 8), 1, powerUpsEnabled, Ball.getDifficultyFactor());
			}
		} else if (name.equals("invinciblock")) {
			brick = new Brick[10][10];
			for (int i = 0; i < brick.length; i++) {
				for (int j = 0; j < brick[i].length; j++) {
					brick[i][j] = new Brick((int)(j * (playfieldWidth / brick[i].length)), (int)(((i) * (playfieldHeight / (brick[i].length * 2)))), playfieldWidth / brick[i].length, (int)(playfieldHeight / (brick.length * 2.4)), 0, powerUpsEnabled, Ball.getDifficultyFactor());
				}
			}
			int x = (int)(10 * Math.random());
			int y = (int)(10 * Math.random());
			brick[x][y] = new Brick((int)(y * (playfieldWidth / brick[x].length)), (int)(((x + 1) * (playfieldHeight / (brick[x].length * 2)))), playfieldWidth / brick[x].length, (int)(playfieldHeight / (brick.length * 2.4)), -1, powerUpsEnabled, Ball.getDifficultyFactor());
		}
	}