Fixed the equals method to iterate over both arrays instead of using the to string to verify