added new function of gameboard capturing