add gameboard capture function