 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) / @frames
+        @time += (now - @date - @time) / @actual
         @date = now
 
     rate: ->


    attack: ->
        @words.some (word) -> word.left <= 0


inventory = new class

    if event.keyCode == 13 # enter
        if not animate.id?
            animate.start()
            pool.easter_egg()
    if event.keyCode in [8, 27, 46] # backspace, escape, delete
        player.reset()

