made new player class and divided functionality