Code created in following basic tutorial on a 2d engine drawing shapes http://trentsartain.com/swift-drawn-physics/