Changed players array to object