An Offline Planning Approach to Game Plotline Adaptation