Add hash function to Board class