repfix using game_phase() instead of game_ply() and assuming 0 opponent contempt instead of our own setting.