Moving getPair method to Board class