Added player attribute to constructor for readability.