public List <byte> GetPlayerStates() { var gameId = _gameService.GetCurrentGameId(_playerName); var states = new List <byte>(); var flags = _roundService.GetFlagsIsWin(gameId).ToList(); _roundService.SaveRound(gameId, flags); foreach (bool flag in flags) { byte state = 2; if (flag) { state = 1; } states.Add(state); } return(states); }