Added new class Player and fixed errors