Added player control functionality