added simple movement code