Fixed Error caused by accessing player last playtime
Made code prettier