added good/bad ending scripting