trying to create strategy/rpg game width javascript and canvas