input maze code