finished stack physics (works right in debugger)