Refactor globals to local vars
Save lap to variant
Added GameRepository.getLaps()