added boxArray.shift() to keep it from getting too big