A spring based physics simulator