refactored cube pieces into objects