some more logic for managing players