so here is my algorithm of beating this game:
walk right, if reach end, walk left, if reach end, walk right
shoot higher enemy (= no swarmer, travel straight to door) which is nearest to door, if no higher enemies are on screen:
if enemies come trough hole, shoot hole, else shoot swarmers
buy cheapest update for weapon or turret, ignore EMP untill weapon and turret are max
repair if money left and door damaged