@Override
	public void render (float delta) {
		badguy.setGoal(missile.getBody().getPosition());
		badguy.update(delta);
		missile.update(delta);

		String newLine  = System.lineSeparator();
		
		if(countdown.isDone()){
			System.out.println("You didn't manage to destroy the enemy ship, " + newLine + " they fled and destroyed the planet!");
			ld.setScreen(new LostMinigame(ld, "You didn't manage to destroy the enemy ship, " + newLine + "they fled and destroyed the planet!" , chunk, false));
		}
		
		if (missile.isDestroyed()) {
			if (missile.hasHitted()) {
				hits++;
				if(hits >= badguyHealth){
					System.out.println("You have destroyed the enemy ship!");
					ld.setScreen(new WonMinigame(ld, "You have destroyed " + newLine + " the enemy ship!", chunk));
				}
			} else {
				createNewMissile();
			}
		}

		super.render(delta);
	}