Removing the hard coding and introducing globals

-Removing the hard coding from the previous version.
-Moving all code to external JS files.
-Suggesting a new way for drawing the board(with easy fallback)
-Introducing enumeration like global variables.
BEGAN BUT NOT FINISHED:
-dictionary containing resource locations (not sure if necessary).
-Function drawing a piece object (if we decided that such needs to
exist).