Using a thread that will generate games in the background