         @id = null
 
     start: ->
+        fps.constructor()
         @id = setInterval(@loop, 12)
         $('#playground').css('background-color', 'lightblue')
 

        @die = false
        @word = null
        @pair = null
        @game = null
        @longest = []

    reset: ->

fps = new class
    constructor: ->
        @frames = 20
        @actual = 0
        @time = 0
        @date = new Date()

    loop: ->
        if @actual != @frames
            @actual += 1
        now = new Date()
        @time += (now - @date - @time) / @actual
        @date = now

    rate: ->
