Addded initial draft of movement code