GameLoop and animated class