Rotation included

bug: For some pieces rotation results in missing element?
todo: clean up code