game loop
changed namespace