complete the chessboard class

make the chessboard create code as a class.