Fix crash issue in PlayGame and MainActivity