Drag the planets and click green flag to star simulation. The program is fully working but I couldn't figure out the best configurations for the planet to stay in screen, if you think you can solve it, comment down below!