Made hex map work in browser and node
Restructuring files and preparing for integrating hex maps