Almost got maze code working