Added movement pseudocode.