Algorythm added win and lose conditions and scoring

added code and placeholders for winning and loosing levels as well as
the scoring system and currency acumilaiton.