-- Main class constructor

function Main.new(player, data)
	for _, v in statesTemplate:GetChildren() do
		v:Clone().Parent = player
	end
	
	local dataScope = data.Main
	local self = {}
	self.Data = dataScope
	self._player = player
	self.JoinTime = os.time()
	self.LastPlayTime = dataScope.LastPlayTime
	self.FirstJoinTime = dataScope.FirstJoinTime
	
	setmetatable(self, Main)
	return self
end
