Updated player code, to allow for activate function.