Adapting Game-Playing Agents to Game Requirements