Added win/lose logic to levels.