Changed to use isSideSolid for rotation.