Error handling with nullptr and activePlayer