pieceModel.js logic for pieces

Module for defining logic for each type of piece