Added the Boardstate class