quick attempt at A* search before sleep