Updated the Board class to use the Pair class, and made a minor
modification to the Pair class.