I did something similar in Javascript. My implementation uses the Runge-Kutta algorithm, that is more stable. My GUI does not allow planet creation, but it shows several stable configurations, including the 13 recently found three body planar orbit configurations.
http://jbochi.github.io/planets/ http://suki.ipb.ac.rs/3body/