added matrix rotating walk