pos2D base of pieces, fixing compiler issues