got game to work. implemented backend for magic, no drawn menu support for that but it should be simple (same as rest). Currently can only play game from joining a new game, not joining in the middle.
reverted eventhandlers to the original proper code, changed it so movepoints will not reset to max if you move a limited amount and try to move again