Added player funciton