cleaning up the horrible PHP used to create the initial board, (it is now just bad, instead of absolutely terrible) and allow for boards without the same height and width to work