rewrite simulation to calcarmy bot
bugs, rename sendhalftonext to sendtonext