https://scratch.mit.edu/projects/1276625584 the actual project, this is just to add the gains to the main thread