changed GameLoop to private