added pseudocode for movment functions in pieces.js