Added abiltiy to rotate pattern to isValidStructure()