added inheritance to all pieces