Fixed A* and queens ending