Updated to generate playerId instead of user inputted playerId