created class player and updated variables