Resorted to integer representation of board.
Readded depth adjustment
Merge branch 'master' into gh-pages

Conflicts:
	js/AI/AI.js