Bowling-Game problem | refactored the function calls