code: protected void handleCollision(CmsPositionBean p1, CmsPositionBean p2) {
  
          CmsPositionBean positionToChange = p1;
          if (p1.getTop() <= p2.getTop()) {
              positionToChange = p2;
          }
          positionToChange.setTop(positionToChange.getTop() + 25);
      }
docs: Handles a collision by moving the lower position down.<p>
  
  @param p1 the first position
  @param p2 the second position