Connecting JSON file to HTML templates. Most game functions now working.