Replace public usage of p2s with a function
Replace public usage of p2c with a function
Merge pull request #98 from joichiro/piecemap

Replace public usage of Piece map arrays with functions