Improve performace & bug fixes.

Map Data structure file changed.
Map size variable moved to page.js file.
getColor is now an independent function.
Variable names fix.