Slight modifications to agentmctsthread.cpp to get Rex to play better