not very nicely done but working sim.stickman function