Imported code for player

Imported code for player