Defining getters, setters and the constructor of the Player