patch for Gameboard and some test code on it

Signed-off-by: owwlo <owwlo@163.com>