Update boardstate.cpp