move main() into ChessGame