Refactor the codes so that there is no need to store pointers of Players in a map and just use a vector of Player objects.