wrote/refactored methods for victory conditions