changed testing of victory condition. Hope this fixed the bug.
renaming.