title: Error when running screeps Script
body: <p>Don't know about "Screeps"? Visit screeps.com</p>
  
  <p>Its the 11 line line in the main script</p>
  
  <p>The Error: </p>
  
  <pre><code>main:11
        if (creep.transfer(Game.spawns.Spawn1, RESOURCE_ENGERGY) == ERR_NOT_IN_RANGE {
                                                                                     ^
  SyntaxError: Unexpected token {
  </code></pre>
  
  <p>Script :</p>
  
  <pre><code>module.exports.loop = function () {
      var creep = Game.creeps.Grace;
      if (creep.memory.working == true &amp;&amp; creep.carry.energy == 0) {
        creep.memory.working = false;
      }
      else if (creep.memory.working == false &amp;&amp; creep.carry.energy == creep.carryCapacity) {
        creep.memory.working = true;
      }
  
      if (creep.memory.working == true) {
        if (creep.transfer(Game.spawns.Spawn1, RESOURCE_ENGERGY) == ERR_NOT_IN_RANGE {
           creep.moveTo(Game.spawns.Spawn1);
      }
    }
    else {
      var source = creep.pos.findClosestByPath(FIND_SOURCES);
      if creep.harvest(source) == ERR_NOT_IN_RANGE {
        creep.move.To(source);
      }
    }
  };
  </code></pre>
  
  <p>Any suggestions?</p>