updated mazesolver