159160161162163164165166
*/ public Game getGameByID(String id) throws GameNotExistsException { if (gameMap.containsKey(id)) { return this.gameMap.get(id); } else { throw new GameNotExistsException("This game doesn't exist."); } }