Changed Piece to abstract class and added square variable