Fixed crash issue in latest commit, changed pushBoxes to return a vector