public synchronized static LuaState newLuaState(){
  int i=getNextStateIndex();
  LuaState L=new LuaState(i);
  states.add(i,L);
  return L;
}

public synchronized static LuaState newLuaState ( ) { int i = getNextStateIndex ( ) ; LuaState L = new LuaState ( i ) ; states . add ( i , L ) ; return L ; }
method that creates a new instance of luastate
