Changed player creation code