private static Packet getNewGamePacket(String packet) {
        
        Scanner sc = new Scanner(packet);
        
        if(!sc.next().equals(Packet.PACKET_CODES.NEW_GAME_CMD))    return null;
        Packet res = new Packet(Packet.PACKET_CODES.NEW_GAME_CMD);
        
        GameSettings gs = new GameSettings();
        
        if(!sc.hasNextInt())    return null;
        gs.maxCountOfPlayer = sc.nextInt();
        
        if(!sc.hasNextInt())    return null;
        gs.XSize = sc.nextInt();
        
        if(!sc.hasNextInt())    return null;
        gs.YSize = sc.nextInt();
        
        if(!sc.hasNextInt())    return null;
        gs.turnTime = sc.nextInt();
        
        if(!sc.hasNextInt())    return null;
        int f = sc.nextInt();
        
        if(f == 0)
            gs.extraTurn = false;
        else if(f == 1)
            gs.extraTurn = true;
        else
            return null;
        
        res.setData(gs);
        
        return res;
    }