Update Main.hx

simplify init