public void checkHorizontalCollision() {
		if (tileBoundary.intersects(hero.getBoundaries().get(
				Player.LEFT_SIDE_PLAYER))) {
			switch (type) {
			case DIRT:
				hero.setSpeedX(0);
				hero.setCenterX(tileX + 19);
				break;
			case LEFT_GROUND:
				hero.setSpeedX(0);
				hero.setCenterX(tileX + 19);
				break;
			// System.out.println("player collided on left side");
			}
		}
		if (tileBoundary.intersects(hero.getBoundaries().get(
				Player.RIGHT_SIDE_PLAYER))) {
			switch (type) {
			case DIRT:
				hero.setSpeedX(0);
				hero.setCenterX(tileX - 19);
			case RIGHT_GROUND:
				hero.setSpeedX(0);
				hero.setCenterX(tileX - 19);
				break;
			}
			// System.out.println("player collided on right side");
		}
	}