changed allocating id player in methods.