Added a onClickListener for try command button in the TextPlay.java file with if else if statements
Defined setGravity for the TextView in the TextPlay.java file using if else if statements