.stream().filter(x -> x.getGameId().equals(gameId)).findAny()
.orElseThrow(IllegalArgumentException::new);
openGameForUserList.remove(openGameForUserToDelete);</BUG>
}
@Override
<BUG>public void addOpenGameForUser(UUID playerId, OpenGameForUser openGameForUser) {
openGameForUserMap.putIfAbsent(playerId, new ArrayList<>());

openGameForUserMap.get(playerId).add(openGameForUser);
</BUG>
}

public OpenGameForPlayerInMemoryRepository() {
openGameForUserMap = new ConcurrentHashMap<>();
}
@Override
public List<OpenGameForUser> fetchAllOpenGamesForPlayer(UUID playerId) {
return openGameForUserMap.getOrDefault(playerId, Collections.emptyMap()).values().stream()
.sorted(Comparator.comparingInt(OpenGameForUser::getOrdinal)).collect(Collectors.toList());
