// Move up next to the goal.
for ( Integer next : solution )
{
int sq = next.intValue();
// Quit when we are about to move to the goal
if ( sq == VolcanoMazeManager.goal )
{
break;
}
VolcanoMazeRequest req = new VolcanoMazeRequest( sq );
RequestThread.postRequest( req );
}