using a chessBoard array as a controller instead of using the dom