fixed a bunch of weird issues, but still having NaN for position after an attack once in awhile