public void tick() {
		spawner.tick();

		for (int y = 0; y < height; y++) {
			for (int x = 0; x < height; x++) {
				getTile(x, y).tick();
			}
		}

		List<Player> players = new ArrayList<Player>();
		for (int i = 0; i < entities.size(); i++) {
			Entity e = getEntities().get(i);
			if (!(e.tag.contains("player"))) e.tick();
			else players.add((Player) e);
		}

		for (Player p : players) {
			p.tick();
		}

	}