revise OO player in the function displayText