Checks if this Body object is equal to the specified other object.
Two Body objects are considered equal if their goalCode, goal, and accept properties are equal.
Return
true if this Body object is equal to the specified other object, false otherwise.
Parameters
The object to compare for equality. If the other object is not of type Body, the method returns false.