Refactor bowling game