Generate board

Dynamically generate playing board with javascript
Unnecessary code
Rearrange server calls

Rearrange server calls for easier read