changed player array to object