A 180 degree rotation assigns one more layer

A 180 degree rotation assigns one more layer. Therefore, added more code
to account for one more layer.