Mega Jump With Sprite Kit and Swift script is outdated

i am getting 2 compiler errors for mega jump the first is

override func touchesBegan(_ touches: Set, with event: UIEvent) { // Changed Swift 1.2 //error in Xcode says that method does not override any method from its superclass…error//
// 1
// If we’re already playing, ignore touches
if player.physicsBody!.isDynamic {
return
}

    // 2
    // Remove the Tap to Start node
    tapToStartNode.removeFromParent()
    
    // 3
    // Start the player by putting them into the physics simulation
    player.physicsBody?.isDynamic = true
    
    // 4
    player.physicsBody?.applyImpulse(CGVector(dx: 0.0, dy: 20.0))
}

import UIKit
import SpriteKit

class GameViewController: UIViewController {

override func viewDidLoad() {
    super.viewDidLoad()
    
    let skView = self.view as! SKView
    
    skView.showsFPS = true
    skView.showsNodeCount = true
            
    let scene = GameScene(size: skView.bounds.size)
    scene.scaleMode = .aspectFit
    
    skView.presentScene(scene)
}

override var shouldAutorotate : Bool {
    return true
}

override func supportedInterfaceOrientations() -> Int { //error in Xcode says that method does not override any method from its superclass...error// 
    if UIDevice.current.userInterfaceIdiom == .phone {
        return Int(UIInterfaceOrientationMask.allButUpsideDown.rawValue)
    } else {
        return Int(UIInterfaceOrientationMask.all.rawValue)
    }
}

override func didReceiveMemoryWarning() {
    super.didReceiveMemoryWarning()
    // Release any cached data, images, etc that aren't in use.
}

override var prefersStatusBarHidden : Bool {
    return true
}

}