stack update method and play loop updated condensed into one method