Turnbased rpg game build with javascript