Added end game condition. Need to fix filtering.
Fixed victory condition