Made getGameRule optional.