this accomplishes the same thing as updateMoveFrame in the original code, but manages to do so inline which is more readable imo