Equality operator.
@override bool operator ==(Object other) { return other is BoardArrow && from == other.from && to == other.to; }