Extracted the selectionbox_width variable so it only gets set once per game load