corrected number comparisons issues in boardView.js