Use FlxMath.equal() for equals() in FlxPoint and FlxRect