Used Players object instead of just adding an element to players array and setting properties/methods there