     @projectiles.push projectile
 
   removeProjectile: (projectile)->
-    @projectiles.splice @projectiles.indexOf(projectile), 1
+
+  canFire: ->
+    @projectiles.length is 0
 
 (new Game).run()


  update: ->
    if @game.controller.left
      @move(@x - @speed)
    if @game.controller.right
      @move(@x + @speed)
    if @game.controller.fire and @canFire()
      @fire()

  move: (x)->

    super @x, @y, @radius, @radius, 50, @game, 1

  update: ->
    super
    @move @x, @y-@speed

  render: ->
