public OpenGameForPlayerInMemoryRepository() {
openGameForUserMap = new ConcurrentHashMap<>();
}
@Override
public List<OpenGameForUser> fetchAllOpenGamesForPlayer(UUID playerId) {
<BUG>return openGameForUserMap.getOrDefault(playerId, new ArrayList<>());
}</BUG>
@Override
<BUG>public void deleteOpenGameForPlayer(UUID playerId, UUID gameId) {
List<OpenGameForUser> openGameForUserList = openGameForUserMap.get(playerId);
OpenGameForUser openGameForUserToDelete = openGameForUserList
.stream().filter(x -> x.getGameId().equals(gameId)).findAny()
.orElseThrow(IllegalArgumentException::new);
openGameForUserList.remove(openGameForUserToDelete);</BUG>
}

public OpenGameForPlayerInMemoryRepository() {
openGameForUserMap = new ConcurrentHashMap<>();
}
