added another constructor to player