@Override
	public void step(PulsatioGame game, float delta) {
		stage.act(delta);
		stage.draw();
		
		heartbeatTimer += delta;
		if (heartbeatTimer >= 12) {
			heartbeatTimer = 0;
			game.assets.get("sound/GGJ13_Theme.wav", Sound.class).play(adrenalineteam0*3f);
		}
		
		if (placementPhase && player0placed && player1placed) {
			leavePlacement();
		}
		
		if ((team0units.size() == 0 || team1units.size() == 0) && (player0placed && player1placed && !placementPhase)) {
			Log.info("Game over");
			Gdx.app.exit();
		}
		
		SpriteBatch b = stage.getSpriteBatch();
		b.begin();
		drawUi(b);
		b.end();
	}