Attempting to determine winning/tied game states (not working)