Your code is fine, but there is a bug in our CoffeeScript transpilation process where it can’t handle nested if-statements instead loops like that. We’ll probably have our work cut out for us fixing it, too. For now I’d recommend playing the later levels in a language other than CoffeeScript, like Python.