Fixed and_or_player so that it doesn't crash when it encounters a win state.