# Errta in chapter 15 page 267

**URL:** <https://forums.kodeco.com/t/errta-in-chapter-15-page-267/24506>\
**Category:** 3D iOS Games by Tutorials\
**Created:** [December 26, 2016, 3:07pm UTC](https://forums.kodeco.com/t/errta-in-chapter-15-page-267/24506 "2016-12-26T15:07:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hssong](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/hssong/32/96780_2.png) [@hssong](https://forums.kodeco.com/u/hssong)\
**Post date:** [December 26, 2016, 3:07pm UTC](https://forums.kodeco.com/t/errta-in-chapter-15-page-267/24506/1 "2016-12-26T15:07:25Z")

</div>

There is errta in source code of page 267

```
// 3
func testForGameOver() {
  if ballNode.presentation.position.y < -5 {
    game.state = GameStateType.gameOver
    game.playSound(node: ballNode, name: "GameOver")
    ballNode.run(SCNAction.waitForDurationThenRunBlock(
      duration: 5) { (node:SCNNode!) -> Void in
        self.resetGame()
    })
  } 
}

```

**run** has to be **runAction**

---

<div class="post-metadata">

**Author:** ![dbourne](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/dbourne/32/81494_2.png) [@dbourne](https://forums.kodeco.com/u/dbourne)\
**Post date:** [June 8, 2017, 5:04pm UTC](https://forums.kodeco.com/t/errta-in-chapter-15-page-267/24506/2 "2017-06-08T17:04:02Z")

</div>

As mentioned this

```
        ballNode.runAction(SCNAction.waitForDurationThenRunBlock(duration: 5, block: { (node:SCNNode!) -> Void in
            self.resetGame()
        }))

```

seems to work, although autocomplete doesn’t quite lead to this. Xcode 8.3.3
