Extracted UI logic into classes TitleScreen and Gameplay