set up game thread for graphics and fps