```coffeescript
define [
  'phaser'
  'underscore'
  'app/helpers'
], (Phaser, _, Helpers) ->

  'use strict'

  {Keyboard} = Phaser

  class InStateMenu

    constructor: (@textItems, game, options = {}) ->
      {@pauseHandler, @layout, @toggleKeyCode} = _.defaults options,
        layout: { y: 120, baseline: 40 }
        pauseHandler: (paused) -> game.paused = paused
        toggleKeyCode: Keyboard.P

      {@add, @height, @input, @width, @world} = game

      @_initialize()

    _initialize: ->
      @group = @add.group()

      @overlay = @add.graphics 0, 0, @group
      @overlay.beginFill 0x000000, 0.2
      @overlay.drawRect 0, 0, @width, @height
      @overlay.endFill()

      for [text, style] in @textItems
        _.defaults style, { fill: '#fff', font: 'Enriqueta' }
        @addCenteredText text, @layout, style, @group 

      @toggleKey = @input.keyboard.addKey @toggleKeyCode
      @toggleKey.onDown.add => @toggle()

      @toggle off

    destroy: ->
      @toggleKey.onDown.removeAll()

    toggle: (toggled) ->
      toggled ?= not @group.visible
      @group.visible = toggled
      @pauseHandler toggled

  _.extend InStateMenu::, Helpers.TextMixin

  InStateMenu
```

Fix InStateMenu not positioning correctly.
user
```coffeescript
define [
  'phaser'
  'underscore'
  'app/helpers'
], (Phaser, _, Helpers) ->

  'use strict'

  {Keyboard} = Phaser

  class InStateMenu

    constructor: (@textItems, game, options = {}) ->
      {@pauseHandler, @layout, @toggleKeyCode} = _.defaults options,
        layout: { y: 120, baseline: 40 }
        pauseHandler: (paused) -> game.paused = paused
        toggleKeyCode: Keyboard.P

      {@add, @height, @input, @width, @world} = game

      @_initialize()

    _initialize: ->
      @group = @add.group null, 'in-state-menu', yes

      @overlay = @add.graphics 0, 0, @group
      @overlay.beginFill 0x000000, 0.2
      @overlay.drawRect 0, 0, @width, @height
      @overlay.endFill()

      for [text, style] in @textItems
        _.defaults style, { fill: '#fff', font: 'Enriqueta' }
        @addCenteredText text, @layout, style, @group 

      @toggleKey = @input.keyboard.addKey @toggleKeyCode
      @toggleKey.onDown.add => @toggle()

      @toggle off

    destroy: ->
      @toggleKey.onDown.removeAll()

    toggle: (toggled) ->
      toggled ?= not @group.visible
      @group.visible = toggled
      @pauseHandler toggled

  _.extend InStateMenu::, Helpers.TextMixin

  InStateMenu
```
assistant