Cosmetic bug fix and added victory conditions.