Added functional to player controls