Moved player class creation