Converted TipsManager to Kotlin
Minor code refactorings in TipsManager