Game Loop Pattern

simple game loop implemented