added walking on terrain