better player number detection