Added pawn move calculation function and moved to separate pieces.js file for piece-specific logic.