Created Compare function, which takes two int values and returns YES or NO based on whether the values are equal to each other.