Refactor appointment management in games