Made a equals method in Utils to check if two structs are the same based on the content.