Fixed function addPlayer