commit player

worked on player function