add mongodb and introduce rest controller to get the board and make moves