for (i=0;i<4;i++) { if (player.dir == i && tiletype(int(this.x+vecy(i)), int(this.y+vecx(i)) != 22) goto(int(this.x+vecy(i)), int(this.y+vecx(i)));}