Automatic lighthouse generation for directed state space search