refactoring in optimizacija scoreboard controllerja