protected void endGame(int status) {
        if(gameEnded) {
            this.running = false;
        }
        else {
            gameEnded = true;
            if(pauseScreen != null && !pauseScreen.isDestroyed()) {
                pauseScreen.canDraw = false;
                pauseScreen.destroy();
            }
            GameEntity.destroyAll();
            gameOver = new GameOverScreen(status);
        }
    }