beginnings of a game loop