Changed represenation of pieces to case objects