Changed getPlayer() method to readonly player attribute.