added functionality to pieces