Object function

Passing the player through the object function