Added initial code for detecting symetry