@Override
    public void run() {

        String name;
        short size;
        while(true)
        {
            switch (Cmd.CmdsToWorld.GetCmdByString(ReadStringLn()))
            {
                case exit:
                    WriteLn("Console thread finishing...");
                    return;

                case create:
                    Write("Enter world name: ");
                    name = in.nextLine();
                    Write("Enter world size: ");
                    size = in.nextShort();
                    World.Inst().Create(name, size);

                    break;

                case start:
                    Write("Enter world name: ");
                    name = in.nextLine();
                    World.Inst().Start(name);
                    break; 
                case ticks:
                    World.Inst().GetTickTime();
                    break;

                default:
                    WriteLn("Unknown command.");
            }

        }
    }