newHeight = newWidth / self.size.ratio;
chessboard.style.width = newWidth + "px";
chessboard.style.height = newHeight + "px";
newHeight = newWidth / self.size.ratio;
chessboard.style.width = newWidth + "px";
chessboard.style.height = newHeight + "px";