Create boardstate.cpp