fix playground to work in xcode 6.0 (assign it to use the iphonesimulator as platform)
minor change for latest version of swift
added problems 17 and 18