V0.1.1 Refactored Code for more object-oriented design and easier automation of html interfacing.

  Changes to be committed:
	modified:   main.js
	modified:   singleplayer.html