Created shared preference object in Higher Activity
Refactored Code
Refactored PlayActivity