Update AntWorld.java

fixed position bug in checkSyntax