Might be easier than it seems given that there are only '6 faces' to the object, Just rotate to the right 4 times, then check the top and bottom. Right?
prosperbluff's comments