private void move(Space current){

	s.push(current);
	current.visit();
	Space next=current.Move();

	if (next==null){
	    s.pop().visit();
	    if (!s.empty()){

		Space temp=s.pop();
		temp.visit();
		move(temp);
	    }
	    else
		return;

	}
	else{
	    move(next);
	}
    }