slow progress towards maze solving script