refactor(player): store player in object

Before, players were stored in an array