Made a sample class for player to learn oo in python and to refactor the code a bit