[Box.cpp] changed void setPrevious() to not be a pointer.