Improved placement availability checking
Refactor board.js; style update.
Merge branch 'better-placement-checking'

Conflicts:
	js/app/board.js