added first code to check the status of the board