refactor tick count out of controller and into Stopwatch class