Medevial Turn based strategy game in Javascript