Change playerid to thread_ix