using vector instead of array for players