Splitting updateBoxTowards in two, removing pointer params