changed the place where moves are generated on search