Pass moves with JSON instead of using eval()