private void checkMapCollision() {
		if (gameStarted && levelOneState) {

			for (int i = 0; i < levelOne.getMapHeight(); i++) {
				for (int j = 0; j < levelOne.getMapWidth(); j++) {
					if (levelOneMap[i][j] > 19) {
						Rectangle rect = new Rectangle(j * levelOne.pixelWidth,
								i * levelOne.pixelHeight, levelOne.pixelWidth,
								levelOne.pixelWidth);

						// Left Map Collision
						if (player.mapCollision(player.getLeftRect(), rect)) {
							leftCollisionCounter++;
							if (player.left && (leftCollisionCounter >= 1)) {
								player.setLeftMapCollision(true);
								player.setRightMapCollision(false);

							}
						}

						// Right Map Collision
						if (player.mapCollision(player.getRightRect(), rect)) {
							rightCollisionCounter++;
							if (player.right && (rightCollisionCounter >= 1)) {
								player.setRightMapCollision(true);
								player.setLeftMapCollision(false);
							}
						}

						// Top Map Collision
						if (player.mapCollision(player.getTopRect(), rect)) {
							topCollisionCounter++;
							if ((player.jumping || player.jetpack)
									&& (topCollisionCounter >= 1)) {
								player.setTopMapCollision(true);
							}
						}

						// Bottom Map Collision
						if (player.mapCollision(player.getBottomRect(), rect)) {
							bottomCollisionCounter++;
							if (!(player.jumping || player.jetpack)
									&& (bottomCollisionCounter >= 1)) {
								player.setBottomMapCollision(true);
							}
						}

						if (player.grounded == true) {
							if ((bottomCollisionCounter == 0)) {
								player.grounded = false;
								player.setBottomMapCollision(false);
								// player.setFalling(true);
								player.setJump(false);
							}
						}
					}
				}
			}
			bottomCollisionCounter = 0;
		}
		if (gameStarted && levelOneBState) {

			for (int i = 0; i < levelOneB.getMapHeight(); i++) {
				for (int j = 0; j < levelOneB.getMapWidth(); j++) {
					if (levelOneMap[i][j] > 19) {
						Rectangle rect = new Rectangle(
								j * levelOneB.pixelWidth, i
										* levelOneB.pixelHeight,
								levelOneB.pixelWidth, levelOneB.pixelWidth);

						// Left Map Collision
						if (player.mapCollision(player.getLeftRect(), rect)) {
							leftCollisionCounter++;
							if (player.left && (leftCollisionCounter >= 1)) {
								player.setLeftMapCollision(true);
								player.setRightMapCollision(false);

							}
						}

						// Right Map Collision
						if (player.mapCollision(player.getRightRect(), rect)) {
							rightCollisionCounter++;
							if (player.right && (rightCollisionCounter >= 1)) {
								player.setRightMapCollision(true);
								player.setLeftMapCollision(false);
							}
						}

						// Top Map Collision
						if (player.mapCollision(player.getTopRect(), rect)) {
							topCollisionCounter++;
							if ((player.jumping || player.jetpack)
									&& (topCollisionCounter >= 1)) {
								player.setTopMapCollision(true);
							}
						}

						// Bottom Map Collision
						if (player.mapCollision(player.getBottomRect(), rect)) {
							bottomCollisionCounter++;
							if (!(player.jumping || player.jetpack)
									&& (bottomCollisionCounter >= 1)) {
								player.setBottomMapCollision(true);
							}
						}

						if (player.grounded == true) {
							if ((bottomCollisionCounter == 0)) {
								player.grounded = false;
								player.setBottomMapCollision(false);
								// player.setFalling(true);
								player.setJump(false);
							}
						}
					}
				}
			}
			bottomCollisionCounter = 0;
		}

		if (gameStarted && levelOneCState) {

			for (int i = 0; i < levelOneC.getMapHeight(); i++) {
				for (int j = 0; j < levelOneC.getMapWidth(); j++) {
					if (levelOneMap[i][j] > 19) {
						Rectangle rect = new Rectangle(
								j * levelOneC.pixelWidth, i
										* levelOneC.pixelHeight,
								levelOneC.pixelWidth, levelOneC.pixelWidth);

						// Left Map Collision
						if (player.mapCollision(player.getLeftRect(), rect)) {
							leftCollisionCounter++;
							if (player.left && (leftCollisionCounter >= 1)) {
								player.setLeftMapCollision(true);
								player.setRightMapCollision(false);

							}
						}

						// Right Map Collision
						if (player.mapCollision(player.getRightRect(), rect)) {
							rightCollisionCounter++;
							if (player.right && (rightCollisionCounter >= 1)) {
								player.setRightMapCollision(true);
								player.setLeftMapCollision(false);
							}
						}

						// Top Map Collision
						if (player.mapCollision(player.getTopRect(), rect)) {
							topCollisionCounter++;
							if ((player.jumping || player.jetpack)
									&& (topCollisionCounter >= 1)) {
								player.setTopMapCollision(true);
							}
						}

						// Bottom Map Collision
						if (player.mapCollision(player.getBottomRect(), rect)) {
							bottomCollisionCounter++;
							if (!(player.jumping || player.jetpack)
									&& (bottomCollisionCounter >= 1)) {
								player.setBottomMapCollision(true);
							}
						}

						if (player.grounded == true) {
							if ((bottomCollisionCounter == 0)) {
								player.grounded = false;
								player.setBottomMapCollision(false);
								// player.setFalling(true);
								player.setJump(false);
							}
						}
					}
				}
			}
			bottomCollisionCounter = 0;
		}

		if (gameStarted && levelOneDState) {

			for (int i = 0; i < levelOneD.getMapHeight(); i++) {
				for (int j = 0; j < levelOneD.getMapWidth(); j++) {
					if (levelOneMap[i][j] > 19) {
						Rectangle rect = new Rectangle(
								j * levelOneD.pixelWidth, i
										* levelOneD.pixelHeight,
								levelOneD.pixelWidth, levelOneD.pixelWidth);

						// Left Map Collision
						if (player.mapCollision(player.getLeftRect(), rect)) {
							leftCollisionCounter++;
							if (player.left && (leftCollisionCounter >= 1)) {
								player.setLeftMapCollision(true);
								player.setRightMapCollision(false);

							}
						}

						// Right Map Collision
						if (player.mapCollision(player.getRightRect(), rect)) {
							rightCollisionCounter++;
							if (player.right && (rightCollisionCounter >= 1)) {
								player.setRightMapCollision(true);
								player.setLeftMapCollision(false);
							}
						}

						// Top Map Collision
						if (player.mapCollision(player.getTopRect(), rect)) {
							topCollisionCounter++;
							if ((player.jumping || player.jetpack)
									&& (topCollisionCounter >= 1)) {
								player.setTopMapCollision(true);
							}
						}

						// Bottom Map Collision
						if (player.mapCollision(player.getBottomRect(), rect)) {
							bottomCollisionCounter++;
							if (!(player.jumping || player.jetpack)
									&& (bottomCollisionCounter >= 1)) {
								player.setBottomMapCollision(true);
							}
						}

						if (player.grounded == true) {
							if ((bottomCollisionCounter == 0)) {
								player.grounded = false;
								player.setBottomMapCollision(false);
								// player.setFalling(true);
								player.setJump(false);
							}
						}
					}
				}
			}
			bottomCollisionCounter = 0;
		}

	}