made titlescreen a class