adding a piecedef so i can remove calls to instanceof
Replacing piece instanceof calls