Self-Imitation Learning by Planning