public void update() {
		player.update();
		if (player.getyPos() > level.getHeight() * level.getTileSize()) {
			player.setyPos(0);
		}
		xMovement += (player.getxPos() - (GamePanel.WIDTH / 2) - xMovement) * movementSpeed;
		yMovement += (player.getyPos() - (GamePanel.HEIGHT / 3) - yMovement) * movementSpeed;
		if (xMovement < 0) {
			xMovement = 0;
		} else if (xMovement > maxXMovement) {
			xMovement = maxXMovement;
		}
		if (yMovement < 0) {
			yMovement = 0;
		} else if (yMovement > maxYMovement) {
			yMovement = maxYMovement;
		}
		for (int i = 0; i < items.size(); i++) {
			if (items.get(i).canCollectCoin(player)) {
				collectedItems++;
				SoundManager.play("orb");
				items.remove(i);
				if (collectedItems == itemCount) {
					winn();
				}
			}
		}
	}