adopted sample solution regarding fixed-y-value of the box (does not travel to the front anymore)