fix duplicate player bug
use [] instead of vector