Here is an XCode 6 iOS 8 Swift game I wrote to connect five dots.