parse type to see if it is a diamond or a square