Updating TextPlay class
Include @SuppressWarnings("deprecation")
Created Unit Test to the TextPlay class