Fixed two logic issues in the Board class.