solve d_game